Skip to content

Commit

Permalink
Fix sensor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codechimp committed May 9, 2024
1 parent 43445b4 commit f9fb2d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/battery_notes/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ async def async_setup_entry(
entity_registry = er.async_get(hass)
device_registry = dr.async_get(hass)

device_id = config_entry.data.get(CONF_DEVICE_ID, None)

async def async_registry_updated(event: Event) -> None:
"""Handle entity registry update."""
data = event.data
Expand Down

0 comments on commit f9fb2d0

Please sign in to comment.