From aa0e8625ad305d17b623219a080e4a032c1e9edd Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 12 Feb 2024 14:22:52 -0600 Subject: [PATCH] Migrate velbus to use async_update_entry to alter config entries (#110399) --- homeassistant/components/velbus/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/velbus/__init__.py b/homeassistant/components/velbus/__init__.py index c23c1d5924e..609823b1310 100644 --- a/homeassistant/components/velbus/__init__.py +++ b/homeassistant/components/velbus/__init__.py @@ -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