From 61577e1dcbca0e9dbdd8f8d6a6afaa305c22260e Mon Sep 17 00:00:00 2001 From: Tor Inge Redalen Date: Sun, 12 Feb 2023 15:36:31 +0100 Subject: [PATCH] Change to async_forward_entry_setups --- custom_components/met_next_6_hours_forecast/__init__.py | 4 ++-- custom_components/met_next_6_hours_forecast/manifest.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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",