Skip to content

Commit b41c477

Browse files
authored
Fix flaky camera test (#129576)
1 parent 5900413 commit b41c477

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/components/camera/test_init.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,8 @@ async def test(expected_types: set[StreamType]) -> None:
929929
# Assert WebSocket response
930930
assert msg["type"] == TYPE_RESULT
931931
assert msg["success"]
932-
assert msg["result"] == {"frontend_stream_types": list(expected_types)}
932+
assert msg["result"] == {"frontend_stream_types": ANY}
933+
assert sorted(msg["result"]["frontend_stream_types"]) == sorted(expected_types)
933934

934935
await test(expected_stream_types)
935936

0 commit comments

Comments
 (0)