Skip to content

Commit

Permalink
fix issue #217 (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
mawinkler authored Sep 2, 2024
1 parent f00a1b2 commit 4785f1a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/gardena_smart_system/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:

hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, lambda event: hass.async_create_task(gardena_system.stop()))

for component in PLATFORMS:
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(entry, component))
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

_LOGGER.debug("Gardena Smart System component setup finished")
return True
Expand Down

0 comments on commit 4785f1a

Please sign in to comment.