Migrate legacy nest to use async_forward_entry_setups (#86573)

Replaces deprecated async_setup_platforms with async_forward_entry_setups
This commit is contained in:
J. Nick Koston
2023-01-24 16:32:55 -10:00
committed by GitHub
parent 9636fe4602
commit 5c6656dcac

View File

@@ -141,7 +141,7 @@ async def async_setup_legacy_entry(hass: HomeAssistant, entry: ConfigEntry) -> b
if not await hass.async_add_executor_job(hass.data[DATA_NEST].initialize):
return False
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
def validate_structures(target_structures):
all_structures = [structure.name for structure in nest.structures]