From aa67eb7f465aa72bb09c7621531f1a7d135ccf76 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 12 Feb 2024 04:18:54 -0600 Subject: [PATCH] Migrate landisgyr_heat_meter to use async_update_entry to alter config entries (#110314) --- homeassistant/components/landisgyr_heat_meter/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/landisgyr_heat_meter/__init__.py b/homeassistant/components/landisgyr_heat_meter/__init__.py index 28317238bf9..101216cd0d4 100644 --- a/homeassistant/components/landisgyr_heat_meter/__init__.py +++ b/homeassistant/components/landisgyr_heat_meter/__init__.py @@ -49,7 +49,7 @@ async def async_migrate_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> # Removing domain name and config entry id from entity unique id's, replacing it with device number if config_entry.version == 1: - config_entry.version = 2 + hass.config_entries.async_update_entry(config_entry, version=2) device_number = config_entry.data["device_number"]