From 31a4e43fae5d2304ea7ab1c5bc583e19809588b2 Mon Sep 17 00:00:00 2001 From: gluap Date: Thu, 14 Nov 2024 16:55:16 +0100 Subject: [PATCH] new syntax --- custom_components/duofern/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/custom_components/duofern/__init__.py b/custom_components/duofern/__init__.py index 6c93da4..4a663b0 100644 --- a/custom_components/duofern/__init__.py +++ b/custom_components/duofern/__init__.py @@ -130,8 +130,7 @@ def setup(hass: HomeAssistant, config: ConfigType) -> bool: async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Setup the Duofern Config entries (entities, devices, etc...)""" - for component in DUOFERN_COMPONENTS: - await hass.config_entries.async_forward_entry_setups(entry, component) + await hass.config_entries.async_forward_entry_setups(entry, DUOFERN_COMPONENTS) return True