From 2a3d1c9040c543182f5feae39fcd73f62a7ac7cd Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 7 Mar 2024 10:51:15 -1000 Subject: [PATCH] merge --- homeassistant/helpers/entity_platform.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/homeassistant/helpers/entity_platform.py b/homeassistant/helpers/entity_platform.py index 3a441e75e84e..bbd7d3f4005b 100644 --- a/homeassistant/helpers/entity_platform.py +++ b/homeassistant/helpers/entity_platform.py @@ -641,7 +641,11 @@ class EntityPlatform: @callback def _async_handle_interval_callback(self, now: datetime) -> None: """Update all the entity states in a single platform.""" - self.hass.async_create_task(self._update_entity_states(now), eager_start=True) + self.hass.async_create_periodic_task( + self._update_entity_states(now), + name=f"EntityPlatform poll {self.domain}.{self.platform_name}", + eager_start=True, + ) def _entity_id_already_exists(self, entity_id: str) -> tuple[bool, bool]: """Check if an entity_id already exists.