mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +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,
|
||||
CONF_URL: f"{new_proto}://{new_host_port}{new_path}",
|
||||
}
|
||||
hass.config_entries.async_update_entry(entry, data=data)
|
||||
entry.version = 2
|
||||
hass.config_entries.async_update_entry(entry, data=data, version=2)
|
||||
|
||||
LOGGER.info("Migration to version %s successful", entry.version)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user