mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Fix lint issue (#57694)
This commit is contained in:
parent
681b5c48e2
commit
7546c766dd
@ -5,7 +5,7 @@ import asyncio
|
|||||||
from collections.abc import Callable, Coroutine, Iterable
|
from collections.abc import Callable, Coroutine, Iterable
|
||||||
from contextvars import ContextVar
|
from contextvars import ContextVar
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from logging import Logger
|
from logging import Logger, getLogger
|
||||||
from types import ModuleType
|
from types import ModuleType
|
||||||
from typing import TYPE_CHECKING, Any, Protocol
|
from typing import TYPE_CHECKING, Any, Protocol
|
||||||
|
|
||||||
@ -58,6 +58,8 @@ PLATFORM_NOT_READY_RETRIES = 10
|
|||||||
DATA_ENTITY_PLATFORM = "entity_platform"
|
DATA_ENTITY_PLATFORM = "entity_platform"
|
||||||
PLATFORM_NOT_READY_BASE_WAIT_TIME = 30 # seconds
|
PLATFORM_NOT_READY_BASE_WAIT_TIME = 30 # seconds
|
||||||
|
|
||||||
|
_LOGGER = getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class AddEntitiesCallback(Protocol):
|
class AddEntitiesCallback(Protocol):
|
||||||
"""Protocol type for EntityPlatform.add_entities callback."""
|
"""Protocol type for EntityPlatform.add_entities callback."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user