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 a146082 commit a3a9fb2Copy full SHA for a3a9fb2
custom_components/battery_consumption/sensor.py
@@ -135,14 +135,13 @@ async def async_added_to_hass(self):
135
)
136
137
# listen to source ID
138
- self.async_on_remove(
139
- async_track_state_change_event(
140
- self.hass,
141
- [self._source_entity_id],
142
- self._async_battery_consumption_sensor_state_listener,
143
- )
+ async_track_state_change_event(
+ self.hass,
+ [self._source_entity_id],
+ self._async_battery_consumption_sensor_state_listener,
144
145
+
146
@property
147
def unique_id(self):
148
"""Return the unique id of this sensor."""
0 commit comments