Fix lint issue (#57694)

This commit is contained in:
Paulus Schoutsen 2021-10-14 12:03:39 -07:00 committed by GitHub
parent 681b5c48e2
commit 7546c766dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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."""