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:
parent
a74ae3585a
commit
94ecb792ec
2 changed files with 11 additions and 6 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue