Skip to content

Commit ee5b7a3

Browse files
WIP
1 parent c538157 commit ee5b7a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

custom_components/battery_notes/sensor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ async def _entity_rename_listener(event: Event) -> None:
369369
new_wrapped_battery = entity_registry.async_get(new_entity_id)
370370
self.coordinator.wrapped_battery = new_wrapped_battery
371371

372+
# Create a listener for the newly named battery entity
372373
self.async_on_remove(
373374
async_track_state_change_event(
374375
self.hass,

0 commit comments

Comments
 (0)