Prevent saving/deleting Lovelace config in safe mode (#32319)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2020-02-28 11:12:16 -08:00
1 parent f17462b159
commit 601f2c693d
2 files changed
+16

No files matched your search

@@ -50,6 +50,16 @@ async def test_lovelace_from_storage(hass, hass_ws_client, hass_storage):
assert not response["success"]
assert response["error"]["code"] == "config_not_found"
await client.send_json(
{"id": 9, "type": "lovelace/config/save", "config": {"yo": "hello"}}
)
response = await client.receive_json()
assert not response["success"]
await client.send_json({"id": 10, "type": "lovelace/config/delete"})
response = await client.receive_json()
assert not response["success"]
async def test_lovelace_from_storage_save_before_load(
hass, hass_ws_client, hass_storage