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

Enable Ruff SIM201 (#88171)

This commit is contained in:
Franck Nijhof
2023-02-15 14:43:02 +01:00
committed by GitHub
parent 443d446cbf
commit f67ebcade1
9 changed files with 10 additions and 9 deletions

View File

@@ -2123,7 +2123,7 @@ async def test_live_stream_with_one_second_commit_interval(
hass.bus.async_fire("mock_event", {"device_id": device.id, "message": "7"})
while not len(recieved_rows) == 7:
while len(recieved_rows) != 7:
msg = await asyncio.wait_for(websocket_client.receive_json(), 2.5)
assert msg["id"] == 7
assert msg["type"] == "event"