Migrate samsungtv to use async_update_entry to alter config entries (#110362)

This commit is contained in:
J. Nick Koston 2024-02-12 11:41:46 -06:00 committed by GitHub
parent 542e306b0c
commit d78bb3894c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -269,7 +269,7 @@ async def async_migrate_entry(hass: HomeAssistant, config_entry: ConfigEntry) ->
en_reg = er.async_get(hass)
en_reg.async_clear_config_entry(config_entry.entry_id)
version = config_entry.version = 2
hass.config_entries.async_update_entry(config_entry, version=2)
LOGGER.debug("Migration to version %s successful", version)
return True