From 78afafecc315f99c550ac2c843cbb60a8d2d7f80 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Mon, 4 May 2026 21:30:15 +0000 Subject: [PATCH] mod --- homeassistant/components/min_max/repairs.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/homeassistant/components/min_max/repairs.py b/homeassistant/components/min_max/repairs.py index 30423677a831..feb2824cab9b 100644 --- a/homeassistant/components/min_max/repairs.py +++ b/homeassistant/components/min_max/repairs.py @@ -1,4 +1,4 @@ -"""Repairs platform for the Workday integration.""" +"""Repairs platform for the Min/Max integration.""" from __future__ import annotations @@ -71,17 +71,18 @@ class MigrateToGroupSensorFlow(RepairsFlow): version=1, ) - await self.hass.config_entries.async_unload_platforms( - self.entry, [SENSOR_DOMAIN] + await self.hass.config_entries.async_forward_entry_unload( + self.entry, SENSOR_DOMAIN ) + await self.hass.config_entries.async_unload(self.entry.entry_id) await self.hass.config_entries.async_add(new_config_entry) - if old_entity: - entity_reg.async_update_entity_platform( - old_entity, - GROUP_DOMAIN, - new_config_entry_id=new_config_entry.entry_id, - ) + + entity_reg.async_update_entity_platform( + old_entity, + GROUP_DOMAIN, + new_config_entry_id=new_config_entry.entry_id, + ) await self.hass.config_entries.async_remove(self.entry.entry_id) return self.async_create_entry(data={})