Skip to content

Commit

Permalink
reintroduce initial update
Browse files Browse the repository at this point in the history
  • Loading branch information
patman15 committed Apr 4, 2024
1 parent d945314 commit b70e8a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/bms_ble/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:

# Query the device the first time, initialise coordinator.data
try:
await coordinator.async_config_entry_first_refresh()
# Insert the coordinator in the global registry
hass.data.setdefault(DOMAIN, {})
hass.data[DOMAIN][entry.entry_id] = coordinator
Expand Down

0 comments on commit b70e8a2

Please sign in to comment.