From d9b701000aeac4e2eff893220618c7f0e00a2ef7 Mon Sep 17 00:00:00 2001 From: Dan <9346191+ScrewLooseDan@users.noreply.github.com> Date: Sun, 13 Oct 2024 16:17:16 -0400 Subject: [PATCH] Update __init__.py Fix async_forward_entry_setup errors (deprecated). --- custom_components/apex/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/custom_components/apex/__init__.py b/custom_components/apex/__init__.py index 3dd08e1..de809dc 100644 --- a/custom_components/apex/__init__.py +++ b/custom_components/apex/__init__.py @@ -59,10 +59,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry): hass.data[DOMAIN][entry.entry_id] = coordinator - 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) async def async_set_options_service(service_call): await hass.async_add_executor_job(set_output, hass, service_call, coordinator)