From 7546c766dd540f5c79fee9e4a200cf9688a66a54 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Thu, 14 Oct 2021 12:03:39 -0700 Subject: [PATCH] Fix lint issue (#57694) --- homeassistant/helpers/entity_platform.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/helpers/entity_platform.py b/homeassistant/helpers/entity_platform.py index 871ac92e3a6..51e29647a9e 100644 --- a/homeassistant/helpers/entity_platform.py +++ b/homeassistant/helpers/entity_platform.py @@ -5,7 +5,7 @@ import asyncio from collections.abc import Callable, Coroutine, Iterable from contextvars import ContextVar from datetime import datetime, timedelta -from logging import Logger +from logging import Logger, getLogger from types import ModuleType from typing import TYPE_CHECKING, Any, Protocol @@ -58,6 +58,8 @@ PLATFORM_NOT_READY_RETRIES = 10 DATA_ENTITY_PLATFORM = "entity_platform" PLATFORM_NOT_READY_BASE_WAIT_TIME = 30 # seconds +_LOGGER = getLogger(__name__) + class AddEntitiesCallback(Protocol): """Protocol type for EntityPlatform.add_entities callback."""