mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00
Fix flaky camera test (#129576)
This commit is contained in:
parent
76f9a93ed7
commit
5fe827f6c4
@ -929,7 +929,8 @@ async def _test_capabilities(
|
|||||||
# Assert WebSocket response
|
# Assert WebSocket response
|
||||||
assert msg["type"] == TYPE_RESULT
|
assert msg["type"] == TYPE_RESULT
|
||||||
assert msg["success"]
|
assert msg["success"]
|
||||||
assert msg["result"] == {"frontend_stream_types": list(expected_types)}
|
assert msg["result"] == {"frontend_stream_types": ANY}
|
||||||
|
assert sorted(msg["result"]["frontend_stream_types"]) == sorted(expected_types)
|
||||||
|
|
||||||
await test(expected_stream_types)
|
await test(expected_stream_types)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user