mirror of https://github.com/home-assistant/core
Move top-level av import behind type checking flag (#49281)
* Move top-level av import behind type checking flag * Lint
This commit is contained in:
parent
283342bafb
commit
6604614c39
|
@ -4,12 +4,10 @@ from __future__ import annotations
|
|||
import asyncio
|
||||
from collections import deque
|
||||
import io
|
||||
from typing import Any, Callable
|
||||
from typing import TYPE_CHECKING, Any, Callable
|
||||
|
||||
from aiohttp import web
|
||||
import attr
|
||||
import av.container
|
||||
import av.video
|
||||
|
||||
from homeassistant.components.http import HomeAssistantView
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
|
@ -18,6 +16,10 @@ from homeassistant.util.decorator import Registry
|
|||
|
||||
from .const import ATTR_STREAMS, DOMAIN
|
||||
|
||||
if TYPE_CHECKING:
|
||||
import av.container
|
||||
import av.video
|
||||
|
||||
PROVIDERS = Registry()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue