mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 05:37:44 +00:00
Migrate smhi to use async_update_entry to alter config entries (#110391)
This commit is contained in:
parent
2f0d294219
commit
5f03b5ad41
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user