From 97c3fda98487b73e00945fba55bfd90006a1de53 Mon Sep 17 00:00:00 2001 From: Andreas <69649604+a529987659852@users.noreply.github.com> Date: Mon, 1 Jul 2024 09:40:36 +0200 Subject: [PATCH] TechUpdate: Replace async_forward_entry_setup by async_forward_entry_setups --- custom_components/openwbmqtt/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/custom_components/openwbmqtt/__init__.py b/custom_components/openwbmqtt/__init__.py index dd7d73c..f70c6da 100644 --- a/custom_components/openwbmqtt/__init__.py +++ b/custom_components/openwbmqtt/__init__.py @@ -12,10 +12,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Trigger the creation of sensors.""" - for platform in PLATFORMS: - hass.async_create_task( - hass.config_entries.async_forward_entry_setup(entry, platform) - ) + await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) # Define services that publish data to MQTT. The published data is subscribed by openWB # and the respective settings are changed.