mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
Unregister listener for stats sensor with max_age (#31580)
This commit is contained in:
@@ -294,6 +294,7 @@ class StatisticsSensor(Entity):
|
||||
"""Timer callback for sensor update."""
|
||||
_LOGGER.debug("%s: executing scheduled update", self.entity_id)
|
||||
self.async_schedule_update_ha_state(True)
|
||||
self._update_listener = None
|
||||
|
||||
self._update_listener = async_track_point_in_utc_time(
|
||||
self.hass, _scheduled_update, next_to_purge_timestamp
|
||||
|
Reference in New Issue
Block a user