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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user