diff --git a/custom_components/volkswagencarnet/__init__.py b/custom_components/volkswagencarnet/__init__.py index e4fced5..6939cb4 100755 --- a/custom_components/volkswagencarnet/__init__.py +++ b/custom_components/volkswagencarnet/__init__.py @@ -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