Migrate legacy nest to use async_forward_entry_setups (#86573)

Replaces deprecated async_setup_platforms with async_forward_entry_setups
pull/86595/head
J. Nick Koston 2023-01-24 16:32:55 -10:00 committed by GitHub
parent 9636fe4602
commit 5c6656dcac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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]