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