diff --git a/custom_components/sbanken/__init__.py b/custom_components/sbanken/__init__.py index 071abe3..d45b550 100644 --- a/custom_components/sbanken/__init__.py +++ b/custom_components/sbanken/__init__.py @@ -16,11 +16,12 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: if DOMAIN not in hass.data: hass.data[DOMAIN] = {} - hass.config_entries.async_setup_platforms(entry, PLATFORMS) - api = SbankenApi(entry.options.get(CONF_CLIENT_ID), entry.options.get(CONF_SECRET)) hass.data[DOMAIN]["api"] = api hass.data[DOMAIN]["listener"] = entry.add_update_listener(update_listener) + + await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) + return True diff --git a/custom_components/sbanken/manifest.json b/custom_components/sbanken/manifest.json index a7501a0..f384575 100644 --- a/custom_components/sbanken/manifest.json +++ b/custom_components/sbanken/manifest.json @@ -1,7 +1,7 @@ { "domain": "sbanken", "name": "Sbanken", - "version": "2.2.0", + "version": "2.2.1", "config_flow": true, "documentation": "https://github.com/toringer/home-assistant-sbanken", "issue_tracker": "https://github.com/toringer/home-assistant-sbanken/issues",