1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 04:50:05 +00:00

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
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")