mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Migrate ambient_station to use async_update_entry to alter config entries (#110305)
This commit is contained in:
parent
eadf2380d9
commit
d6ba7bf506
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user