Migrate forecast_solar to use async_update_entry to alter config entries (#110306)

This commit is contained in:
J. Nick Koston 2024-02-12 01:27:44 -06:00 committed by GitHub
parent 322b8b5be0
commit 73bb7d6830
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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