Update ConfigEntry migration to follow current best practices (#1123)

This commit is contained in:
Allen Porter 2021-11-03 23:43:27 -07:00 committed by GitHub
parent a23255ff52
commit 92b171187e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -212,10 +212,9 @@ async def async_migrate_entry(hass, config_entry: ConfigEntry):
new = {**config_entry.data}
# TODO: modify Config Entry data
config_entry.data = {**new}
config_entry.version = 2
hass.config_entries.async_update_entry(config_entry, data=new)
_LOGGER.info("Migration to version %s successful", config_entry.version)