From 3441b93c5c1c639dd879a67bc5f82ca125f2cd3a Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 10 Feb 2024 09:20:16 -0600 Subject: [PATCH] Update systemmonitor to set config entry version using async_update_entry (#110192) --- homeassistant/components/systemmonitor/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/systemmonitor/__init__.py b/homeassistant/components/systemmonitor/__init__.py index d99bc519eff..20f9863e33d 100644 --- a/homeassistant/components/systemmonitor/__init__.py +++ b/homeassistant/components/systemmonitor/__init__.py @@ -41,9 +41,9 @@ async def async_migrate_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: # Repair will remove sensors when user submit the fix if processes := entry.options.get(SENSOR_DOMAIN): new_options[BINARY_SENSOR_DOMAIN] = processes - entry.version = 1 - entry.minor_version = 2 - hass.config_entries.async_update_entry(entry, options=new_options) + hass.config_entries.async_update_entry( + entry, options=new_options, version=1, minor_version=2 + ) _LOGGER.debug( "Migration to version %s.%s successful", entry.version, entry.minor_version