mirror of
https://github.com/elisspace/core.git
synced 2026-09-01 00:44:04 +00:00
Fix statistics registering at start callback (#60963)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user