Skip to content

Commit

Permalink
Remove platforms list from KnmiDataUpdateCoordinator
Browse files Browse the repository at this point in the history
  • Loading branch information
golles committed Nov 9, 2022
1 parent 9556aed commit 9549725
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/knmi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9549725

Please sign in to comment.