From a982770b14c2b2f20b1ae6fbdf234f6bd6214258 Mon Sep 17 00:00:00 2001 From: Yegor Pastukhov Date: Sun, 1 Sep 2024 13:29:40 +0500 Subject: [PATCH] Changed deprecated call to async_forward_entry_setup to await async_forward_entry_setups --- custom_components/skykettle/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/custom_components/skykettle/__init__.py b/custom_components/skykettle/__init__.py index 4bd2bbf..47f1ad5 100644 --- a/custom_components/skykettle/__init__.py +++ b/custom_components/skykettle/__init__.py @@ -56,10 +56,7 @@ def schedule_poll(td): hass.data[DOMAIN][DATA_WORKING] = True hass.data[DOMAIN][DATA_DEVICE_INFO] = lambda: device_info(entry) - 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) schedule_poll(timedelta(seconds=3))