mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
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:
parent
9636fe4602
commit
5c6656dcac
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user