mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix statistics registering at start callback (#60963)
This commit is contained in:
parent
b2ee62ba8d
commit
2fe48702f3
@ -243,8 +243,7 @@ class StatisticsSensor(SensorEntity):
|
||||
self._add_state_to_queue(new_state)
|
||||
self.async_schedule_update_ha_state(True)
|
||||
|
||||
@callback
|
||||
def async_stats_sensor_startup(_):
|
||||
async def async_stats_sensor_startup(_):
|
||||
"""Add listener and get recorded state."""
|
||||
_LOGGER.debug("Startup for %s", self.entity_id)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user