Avoid loading mqtt for type checking (#74464)
This commit is contained in:
parent
b590e51f88
commit
e7b2d4672c
1 changed files with 4 additions and 1 deletions
|
@ -6,7 +6,7 @@ import logging
|
|||
from typing import TYPE_CHECKING, Any, Generic, TypeVar, Union, cast
|
||||
|
||||
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.data_entry_flow import FlowResult
|
||||
|
||||
|
@ -15,6 +15,9 @@ from .typing import UNDEFINED, DiscoveryInfoType, UndefinedType
|
|||
if TYPE_CHECKING:
|
||||
import asyncio
|
||||
|
||||
from homeassistant.components import mqtt
|
||||
|
||||
|
||||
_R = TypeVar("_R", bound="Awaitable[bool] | bool")
|
||||
DiscoveryFunctionType = Callable[[HomeAssistant], _R]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue