Migrate switchbee to use async_update_entry to alter config entries (#110392)

This commit is contained in:
J. Nick Koston 2024-02-12 12:51:45 -06:00 committed by GitHub
parent 332db5093f
commit df8a168c97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -156,7 +156,7 @@ async def async_migrate_entry(hass: HomeAssistant, config_entry: ConfigEntry) ->
hass, config_entry.entry_id, update_unique_id
)
config_entry.version = 2
hass.config_entries.async_update_entry(config_entry, version=2)
_LOGGER.info("Migration to version %s successful", config_entry.version)