Fix duplicate events in live logbook (#113828)
This commit is contained in:
parent
15c0422837
commit
32c64855b2
2 changed files with 5 additions and 2 deletions
|
@ -2285,7 +2285,7 @@ async def test_live_stream_with_one_second_commit_interval(
|
|||
|
||||
hass.bus.async_fire("mock_event", {"device_id": device.id, "message": "7"})
|
||||
|
||||
while 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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue