diff --git a/custom_components/met_next_6_hours_forecast/__init__.py b/custom_components/met_next_6_hours_forecast/__init__.py index 0424624..e0d9e0b 100755 --- a/custom_components/met_next_6_hours_forecast/__init__.py +++ b/custom_components/met_next_6_hours_forecast/__init__.py @@ -14,10 +14,10 @@ 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 = MetApi() hass.data[DOMAIN]["api"] = api + + await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) return True diff --git a/custom_components/met_next_6_hours_forecast/manifest.json b/custom_components/met_next_6_hours_forecast/manifest.json index 9d8f57b..3e62853 100755 --- a/custom_components/met_next_6_hours_forecast/manifest.json +++ b/custom_components/met_next_6_hours_forecast/manifest.json @@ -1,7 +1,7 @@ { "domain": "met_next_6_hours_forecast", "name": "Met.no next 6 hours forecast", - "version": "1.0.3", + "version": "1.0.4", "config_flow": true, "documentation": "https://github.com/toringer/home-assistant-met-next-6-hours-forecast", "issue_tracker": "https://github.com/toringer/home-assistant-met-next-6-hours-forecast/issues",