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

Allow get_states to recover (#67146)

This commit is contained in:
Paulus Schoutsen
2022-02-23 21:15:48 -08:00
committed by GitHub
parent 79bdd71da7
commit a42547c0e5
3 changed files with 45 additions and 5 deletions

View File

@@ -76,7 +76,8 @@ async def test_non_json_message(hass, websocket_client, caplog):
msg = await websocket_client.receive_json()
assert msg["id"] == 5
assert msg["type"] == const.TYPE_RESULT
assert not msg["success"]
assert msg["success"]
assert msg["result"] == []
assert (
f"Unable to serialize to JSON. Bad data found at $.result[0](State: test_domain.entity).attributes.bad={bad_data}(<class 'object'>"
in caplog.text