Use async_update_entry rather than updating config_entry.data directly in Axis (#46078)

Don't step version in migrate_entry to support rollbacking
This commit is contained in:
Robert Svensson 2021-02-06 13:17:52 +01:00 committed by GitHub
parent a74ae3585a
commit 94ecb792ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 6 deletions

View file

@ -109,7 +109,7 @@ async def test_migrate_entry(hass):
CONF_MODEL: "model",
CONF_NAME: "name",
}
assert entry.version == 3
assert entry.version == 2 # Keep version to support rollbacking
assert entry.unique_id == "00:40:8c:12:34:56"
vmd4_entity = registry.async_get("binary_sensor.vmd4")