diff --git a/homeassistant/helpers/entity_platform.py b/homeassistant/helpers/entity_platform.py index 6703935c10a..de3d26b1efc 100644 --- a/homeassistant/helpers/entity_platform.py +++ b/homeassistant/helpers/entity_platform.py @@ -624,11 +624,16 @@ class EntityPlatform: self._async_unsub_polling = async_track_time_interval( self.hass, - self._update_entity_states, + self._async_handle_interval_callback, self.scan_interval, name=f"EntityPlatform poll {self.domain}.{self.platform_name}", ) + @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) + def _entity_id_already_exists(self, entity_id: str) -> tuple[bool, bool]: """Check if an entity_id already exists.