Migrate heos to use async_forward_entry_setups (#86562)

* Migrate heos to use async_forward_entry_setups

Replaces deprecated async_setup_platforms with async_forward_entry_setups

* fix order
This commit is contained in:
J. Nick Koston 2023-01-24 23:00:55 -10:00 committed by GitHub
parent c1e3c1a27c
commit e427a70dc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,11 +139,11 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
}
services.register(hass, controller)
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
group_manager.connect_update()
entry.async_on_unload(group_manager.disconnect_update)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
return True