From 4785f1ae58bae65062f7bcbb4f3884dc97dc0558 Mon Sep 17 00:00:00 2001 From: Markus Winkler Date: Mon, 2 Sep 2024 22:04:39 +0200 Subject: [PATCH] fix issue #217 (#220) --- custom_components/gardena_smart_system/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/custom_components/gardena_smart_system/__init__.py b/custom_components/gardena_smart_system/__init__.py index 6b861cc..1c8f810 100644 --- a/custom_components/gardena_smart_system/__init__.py +++ b/custom_components/gardena_smart_system/__init__.py @@ -61,9 +61,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, lambda event: hass.async_create_task(gardena_system.stop())) - for component in PLATFORMS: - hass.async_create_task( - hass.config_entries.async_forward_entry_setup(entry, component)) + await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) _LOGGER.debug("Gardena Smart System component setup finished") return True