Skip to content

Commit

Permalink
Use async_forward_entry_setups
Browse files Browse the repository at this point in the history
  • Loading branch information
dougiteixeira committed Jun 23, 2024
1 parent 3c46435 commit a31c5f8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions custom_components/proxmoxve/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,10 +589,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
create=True,
)

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

return True

Expand Down

0 comments on commit a31c5f8

Please sign in to comment.