Skip to content

Commit

Permalink
Fix for #614
Browse files Browse the repository at this point in the history
  • Loading branch information
stickpin committed May 4, 2024
1 parent de30885 commit e618193
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 e618193

Please sign in to comment.