Update airnow to set ConfigEntry version with async_update_entry (#110202)

This commit is contained in:
J. Nick Koston 2024-02-10 12:55:38 -06:00 committed by GitHub
parent 6b913546b9
commit b3e46e3d64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,9 +77,8 @@ async def async_migrate_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
new_data = entry.data.copy()
del new_data[CONF_RADIUS]
entry.version = 2
hass.config_entries.async_update_entry(
entry, data=new_data, options=new_options
entry, data=new_data, options=new_options, version=2
)
_LOGGER.info("Migration to version %s successful", entry.version)