Skip to content

Commit

Permalink
Fixed async_forward_entry_setup
Browse files Browse the repository at this point in the history
Thank you so much @micium
  • Loading branch information
caiosweet committed Jul 6, 2024
1 parent 3fcd69c commit e70ed4c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/dpc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,10 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
for platform in PLATFORMS:
if entry.options.get(platform, True):
coordinator.platforms.append(platform)
hass.async_create_task(hass.config_entries.async_forward_entry_setup(entry, platform))
await hass.config_entries.async_forward_entry_setup(entry, platform)

if not entry.update_listeners:
entry.add_update_listener(async_reload_entry)
# entry.async_on_unload(entry.add_update_listener(async_reload_entry))

return True

Expand Down

0 comments on commit e70ed4c

Please sign in to comment.