Skip to content

Commit

Permalink
Merge pull request #42 from golles/clean_up
Browse files Browse the repository at this point in the history
Remove `platforms` list from `KnmiDataUpdateCoordinator`
  • Loading branch information
golles authored Nov 10, 2022
2 parents 94ce4f9 + 9549725 commit 6d275f8
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 6d275f8

Please sign in to comment.