mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Migrate velbus to use async_update_entry to alter config entries (#110399)
This commit is contained in:
parent
9a672a1f31
commit
aa0e8625ad
@ -211,7 +211,7 @@ async def async_migrate_entry(hass: HomeAssistant, config_entry: ConfigEntry) ->
|
||||
if os.path.isdir(cache_path):
|
||||
await hass.async_add_executor_job(shutil.rmtree, cache_path)
|
||||
# set the new version
|
||||
config_entry.version = 2
|
||||
hass.config_entries.async_update_entry(config_entry, version=2)
|
||||
|
||||
_LOGGER.debug("Migration to version %s successful", config_entry.version)
|
||||
return True
|
||||
|
Loading…
x
Reference in New Issue
Block a user