Skip to content

Commit 045d0c6

Browse files
authored
Merge pull request #130 from pbradley0/main
Update __init__.py
2 parents 3989661 + a9b053d commit 045d0c6

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

custom_components/generac/__init__.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
4444

4545
hass.data[DOMAIN][entry.entry_id] = coordinator
4646

47-
for platform in PLATFORMS:
48-
if entry.options.get(platform, True):
49-
coordinator.platforms.append(platform)
50-
hass.async_create_task(
51-
hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
52-
)
53-
47+
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
5448
entry.add_update_listener(async_reload_entry)
5549
return True
5650

0 commit comments

Comments
 (0)