We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c9b72b commit a58a706Copy full SHA for a58a706
homeassistant/components/smart_meter_texas/sensor.py
@@ -67,7 +67,7 @@ def extra_state_attributes(self):
67
}
68
69
@callback
70
- def _state_update(self):
+ def _handle_coordinator_update(self) -> None:
71
"""Call when the coordinator has an update."""
72
self._attr_available = self.coordinator.last_update_success
73
if self._attr_available:
@@ -77,7 +77,6 @@ def _state_update(self):
77
async def async_added_to_hass(self) -> None:
78
"""Subscribe to updates."""
79
await super().async_added_to_hass()
80
- self.async_on_remove(self.coordinator.async_add_listener(self._state_update))
81
82
# If the background update finished before
83
# we added the entity, there is no need to restore
0 commit comments