Migrate smhi to use async_update_entry to alter config entries (#110391)

This commit is contained in:
J. Nick Koston 2024-02-12 12:45:28 -06:00 committed by GitHub
parent 2f0d294219
commit 5f03b5ad41
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,9 +40,7 @@ async def async_migrate_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
},
}
if not hass.config_entries.async_update_entry(entry, data=new_data):
if not hass.config_entries.async_update_entry(entry, data=new_data, version=2):
return False
entry.version = 2
return True