Add minor version support to storage.Store (#59882)

This commit is contained in:
Erik Montnemery 2021-11-18 17:15:40 +01:00 committed by GitHub
parent cc3f179796
commit d18c250acf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 206 additions and 13 deletions

View file

@ -169,6 +169,7 @@ async def test_agent_user_id_storage(hass, hass_storage):
hass_storage["google_assistant"] = {
"version": 1,
"minor_version": 1,
"key": "google_assistant",
"data": {"agent_user_ids": {"agent_1": {}}},
}
@ -178,6 +179,7 @@ async def test_agent_user_id_storage(hass, hass_storage):
assert hass_storage["google_assistant"] == {
"version": 1,
"minor_version": 1,
"key": "google_assistant",
"data": {"agent_user_ids": {"agent_1": {}}},
}
@ -188,6 +190,7 @@ async def test_agent_user_id_storage(hass, hass_storage):
assert hass_storage["google_assistant"] == {
"version": 1,
"minor_version": 1,
"key": "google_assistant",
"data": data,
}