Migrate ambient_station to use async_update_entry to alter config entries (#110305)

This commit is contained in:
J. Nick Koston 2024-02-11 21:45:34 -06:00 committed by GitHub
parent eadf2380d9
commit d6ba7bf506
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -111,7 +111,8 @@ async def async_migrate_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
en_reg = er.async_get(hass)
en_reg.async_clear_config_entry(entry.entry_id)
version = entry.version = 2
version = 2
hass.config_entries.async_update_entry(entry, version=version)
LOGGER.info("Migration to version %s successful", version)