From df8a168c975f9091daffb7cecb9c4f937a206c24 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 12 Feb 2024 12:51:45 -0600 Subject: [PATCH] Migrate switchbee to use async_update_entry to alter config entries (#110392) --- homeassistant/components/switchbee/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/switchbee/__init__.py b/homeassistant/components/switchbee/__init__.py index dee1fe5cd8f..d5e182a31dc 100644 --- a/homeassistant/components/switchbee/__init__.py +++ b/homeassistant/components/switchbee/__init__.py @@ -156,7 +156,7 @@ async def async_migrate_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> hass, config_entry.entry_id, update_unique_id ) - config_entry.version = 2 + hass.config_entries.async_update_entry(config_entry, version=2) _LOGGER.info("Migration to version %s successful", config_entry.version)