From 1475801666e56b22d8dd79018e53c2a4ba95d62c Mon Sep 17 00:00:00 2001 From: Erkka Tahvanainen Date: Sun, 27 Oct 2024 12:10:17 +0200 Subject: [PATCH] deprecation fix --- custom_components/jablotron80/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/custom_components/jablotron80/__init__.py b/custom_components/jablotron80/__init__.py index 3d3a0af..1f8ab46 100644 --- a/custom_components/jablotron80/__init__.py +++ b/custom_components/jablotron80/__init__.py @@ -51,10 +51,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: for component in PLATFORMS: - hass.async_create_task( - hass.config_entries.async_forward_entry_setup(entry, component) - ) - + await hass.config_entries.async_forward_entry_setup(entry,component) return True async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry):