mirror of
https://github.com/home-assistant/core.git
synced 2025-05-28 17:57:08 +00:00
Migrate escea to use async_forward_entry_setups (#86559)
Replaces deprecated async_setup_platforms with async_forward_entry_setups
This commit is contained in:
parent
dae7bcf387
commit
c1e3c1a27c
@ -12,7 +12,7 @@ PLATFORMS = [CLIMATE_DOMAIN]
|
||||
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
"""Set up from a config entry."""
|
||||
await async_start_discovery_service(hass)
|
||||
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
|
||||
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
|
||||
return True
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user