mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Migrate forecast_solar to use async_update_entry to alter config entries (#110306)
This commit is contained in:
parent
322b8b5be0
commit
73bb7d6830
@ -28,10 +28,8 @@ async def async_migrate_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
CONF_DAMPING_EVENING: new_options.pop(CONF_DAMPING, 0.0),
|
CONF_DAMPING_EVENING: new_options.pop(CONF_DAMPING, 0.0),
|
||||||
}
|
}
|
||||||
|
|
||||||
entry.version = 2
|
|
||||||
|
|
||||||
hass.config_entries.async_update_entry(
|
hass.config_entries.async_update_entry(
|
||||||
entry, data=entry.data, options=new_options
|
entry, data=entry.data, options=new_options, version=2
|
||||||
)
|
)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user