mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Migrate sonarr to use async_update_entry to alter config entries (#110364)
This commit is contained in:
parent
300f5670e0
commit
4bcfa9e315
@ -104,8 +104,7 @@ async def async_migrate_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
**entry.data,
|
**entry.data,
|
||||||
CONF_URL: f"{new_proto}://{new_host_port}{new_path}",
|
CONF_URL: f"{new_proto}://{new_host_port}{new_path}",
|
||||||
}
|
}
|
||||||
hass.config_entries.async_update_entry(entry, data=data)
|
hass.config_entries.async_update_entry(entry, data=data, version=2)
|
||||||
entry.version = 2
|
|
||||||
|
|
||||||
LOGGER.info("Migration to version %s successful", entry.version)
|
LOGGER.info("Migration to version %s successful", entry.version)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user