Replaced deprecated async_setup_platforms with async_forward_entry_setups

This commit is contained in:
Tomaae 2022-08-18 10:45:31 +02:00
parent 12a952a77d
commit 952f3877b7
No known key found for this signature in database
GPG key ID: 8360BBD8A381D1C0

View file

@ -54,7 +54,7 @@ async def async_setup_entry(hass, config_entry) -> bool:
await controller.async_init()
hass.data[DOMAIN][config_entry.entry_id] = controller
hass.config_entries.async_setup_platforms(config_entry, PLATFORMS)
await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS)
config_entry.async_on_unload(config_entry.add_update_listener(update_listener))
hass.services.async_register(