Migrate escea to use async_forward_entry_setups (#86559)

Replaces deprecated async_setup_platforms with async_forward_entry_setups
pull/86614/head
J. Nick Koston 2023-01-24 23:00:12 -10:00 committed by GitHub
parent dae7bcf387
commit c1e3c1a27c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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