mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Unregister listener for stats sensor with max_age (#31580)
This commit is contained in:
parent
274cf23269
commit
37205f9f61
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user