Skip to content

Commit

Permalink
Fix async setup function deprecated in feture
Browse files Browse the repository at this point in the history
  • Loading branch information
JyunWei-Su committed Aug 22, 2024
1 parent 82ea84a commit d2b5c4d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions custom_components/panasonic_smart_app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,7 @@ async def async_update_data():
DATA_COORDINATOR: coordinator,
}

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

entry.add_update_listener(async_reload_entry)
return True
Expand Down

0 comments on commit d2b5c4d

Please sign in to comment.