From db9c08b2e015ed8c81fa163873c630ac7e74a00d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 12 Feb 2024 14:24:32 -0600 Subject: [PATCH] Migrate verisure to use async_update_entry to alter config entries (#110400) --- homeassistant/components/verisure/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/verisure/__init__.py b/homeassistant/components/verisure/__init__.py index dfd9d9cdc04..7d2ea7b7d6d 100644 --- a/homeassistant/components/verisure/__init__.py +++ b/homeassistant/components/verisure/__init__.py @@ -108,7 +108,7 @@ async def async_migrate_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: hass.config_entries.async_update_entry(entry, options=new_options) - entry.version = 2 + hass.config_entries.async_update_entry(entry, version=2) LOGGER.info("Migration to version %s successful", entry.version)