mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Avoid loading mqtt for type checking (#74464)
This commit is contained in:
parent
b590e51f88
commit
e7b2d4672c
@ -6,7 +6,7 @@ import logging
|
|||||||
from typing import TYPE_CHECKING, Any, Generic, TypeVar, Union, cast
|
from typing import TYPE_CHECKING, Any, Generic, TypeVar, Union, cast
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
from homeassistant.components import dhcp, mqtt, onboarding, ssdp, zeroconf
|
from homeassistant.components import dhcp, onboarding, ssdp, zeroconf
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.data_entry_flow import FlowResult
|
from homeassistant.data_entry_flow import FlowResult
|
||||||
|
|
||||||
@ -15,6 +15,9 @@ from .typing import UNDEFINED, DiscoveryInfoType, UndefinedType
|
|||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
|
from homeassistant.components import mqtt
|
||||||
|
|
||||||
|
|
||||||
_R = TypeVar("_R", bound="Awaitable[bool] | bool")
|
_R = TypeVar("_R", bound="Awaitable[bool] | bool")
|
||||||
DiscoveryFunctionType = Callable[[HomeAssistant], _R]
|
DiscoveryFunctionType = Callable[[HomeAssistant], _R]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user