From 95497254597d7cd37ca887ebaf611dbdc5b575e2 Mon Sep 17 00:00:00 2001 From: golles Date: Wed, 9 Nov 2022 19:38:36 +0000 Subject: [PATCH] Remove `platforms` list from `KnmiDataUpdateCoordinator` --- custom_components/knmi/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/custom_components/knmi/__init__.py b/custom_components/knmi/__init__.py index 323f045..7368c2a 100644 --- a/custom_components/knmi/__init__.py +++ b/custom_components/knmi/__init__.py @@ -59,8 +59,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: for platform in PLATFORMS: if entry.options.get(platform, True): - coordinator.platforms.append(platform) - hass.async_add_job( + await hass.async_add_job( hass.config_entries.async_forward_entry_setup(entry, platform) ) return True @@ -89,7 +88,6 @@ def __init__( """Initialize.""" self.api = client self.device_info = device_info - self.platforms = [] super().__init__( hass=hass, logger=_LOGGER, name=DOMAIN, update_interval=SCAN_INTERVAL