Skip to content

Commit

Permalink
Merge pull request #617 from robinostlund/fix-ha202405
Browse files Browse the repository at this point in the history
Fix for #614
  • Loading branch information
stickpin authored May 4, 2024
2 parents de30885 + e618193 commit c1bd1f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/volkswagencarnet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,16 @@ def is_new(attr):
data.instruments.add(instrument)
components.add(COMPONENTS[instrument.component])

for component in components:
coordinator.platforms.append(component)
hass.async_create_task(hass.config_entries.async_forward_entry_setup(entry, component))

hass.data[DOMAIN][entry.entry_id] = {
UPDATE_CALLBACK: update_callback,
DATA: data,
UNDO_UPDATE_LISTENER: entry.add_update_listener(_async_update_listener),
}

for component in components:
coordinator.platforms.append(component)
hass.async_create_task(hass.config_entries.async_forward_entry_setup(entry, component))

register_services()

return True
Expand Down

0 comments on commit c1bd1f6

Please sign in to comment.