Skip to content

Commit f5f6b22

Browse files
authored
Fix spelling error in logbook tests (home-assistant#153417)
Co-authored-by: dollaransh17 <[email protected]>
1 parent f8a93b6 commit f5f6b22

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/components/logbook/test_websocket_api.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2277,26 +2277,26 @@ async def test_live_stream_with_one_second_commit_interval(
22772277

22782278
hass.bus.async_fire("mock_event", {"device_id": device.id, "message": "5"})
22792279

2280-
recieved_rows = []
2280+
received_rows = []
22812281
msg = await asyncio.wait_for(websocket_client.receive_json(), 2)
22822282
assert msg["id"] == 7
22832283
assert msg["type"] == "event"
2284-
recieved_rows.extend(msg["event"]["events"])
2284+
received_rows.extend(msg["event"]["events"])
22852285

22862286
hass.bus.async_fire("mock_event", {"device_id": device.id, "message": "6"})
22872287

22882288
await hass.async_block_till_done()
22892289

22902290
hass.bus.async_fire("mock_event", {"device_id": device.id, "message": "7"})
22912291

2292-
while len(recieved_rows) < 7:
2292+
while len(received_rows) < 7:
22932293
msg = await asyncio.wait_for(websocket_client.receive_json(), 2.5)
22942294
assert msg["id"] == 7
22952295
assert msg["type"] == "event"
2296-
recieved_rows.extend(msg["event"]["events"])
2296+
received_rows.extend(msg["event"]["events"])
22972297

22982298
# Make sure we get rows back in order
2299-
assert recieved_rows == [
2299+
assert received_rows == [
23002300
{"domain": "test", "message": "1", "name": "device name", "when": ANY},
23012301
{"domain": "test", "message": "2", "name": "device name", "when": ANY},
23022302
{"domain": "test", "message": "3", "name": "device name", "when": ANY},
@@ -3018,15 +3018,15 @@ def auto_off_listener(event):
30183018
await hass.async_block_till_done()
30193019
hass.states.async_set("binary_sensor.is_light", STATE_ON)
30203020

3021-
recieved_rows = []
3022-
while len(recieved_rows) < 3:
3021+
received_rows = []
3022+
while len(received_rows) < 3:
30233023
msg = await asyncio.wait_for(websocket_client.receive_json(), 2.5)
30243024
assert msg["id"] == 7
30253025
assert msg["type"] == "event"
3026-
recieved_rows.extend(msg["event"]["events"])
3026+
received_rows.extend(msg["event"]["events"])
30273027

30283028
# Make sure we get rows back in order
3029-
assert recieved_rows == [
3029+
assert received_rows == [
30303030
{"entity_id": "binary_sensor.is_light", "state": "unknown", "when": ANY},
30313031
{"entity_id": "binary_sensor.is_light", "state": "on", "when": ANY},
30323032
{"entity_id": "binary_sensor.is_light", "state": "off", "when": ANY},

0 commit comments

Comments
 (0)