Migrate forecast_solar to use async_update_entry to alter config entries (#110306)
This commit is contained in:
parent
322b8b5be0
commit
73bb7d6830
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue