From 6631f00422539127e44f8990312d8b63097f7e11 Mon Sep 17 00:00:00 2001 From: Erkka Tahvanainen Date: Sun, 27 Oct 2024 12:21:22 +0200 Subject: [PATCH] deprecation fix --- custom_components/jablotron80/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/custom_components/jablotron80/__init__.py b/custom_components/jablotron80/__init__.py index 1f8ab46..97dac72 100644 --- a/custom_components/jablotron80/__init__.py +++ b/custom_components/jablotron80/__init__.py @@ -49,9 +49,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: DATA_OPTIONS_UPDATE_UNSUBSCRIBER: entry.add_update_listener(options_update_listener), } - - for component in PLATFORMS: - await hass.config_entries.async_forward_entry_setup(entry,component) + await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS) return True async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry):