Skip to content

Commit db2af8e

Browse files
committed
chore: use raw return values
1 parent 9a50602 commit db2af8e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tests/devices/traits/a01/test_init.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ async def test_dyad_api_query_values(mock_channel: AsyncMock, mock_send: AsyncMo
2525
api = DyadApi(mock_channel)
2626

2727
mock_send.return_value = {
28-
RoborockDyadDataProtocol.POWER: 1,
29-
RoborockDyadDataProtocol.STATUS: 6,
30-
RoborockDyadDataProtocol.WATER_LEVEL: 3,
31-
RoborockDyadDataProtocol.MESH_LEFT: 120,
32-
RoborockDyadDataProtocol.BRUSH_LEFT: 90,
33-
RoborockDyadDataProtocol.SILENT_MODE_START_TIME: 85,
34-
RoborockDyadDataProtocol.RECENT_RUN_TIME: "3,4,5",
35-
RoborockDyadDataProtocol.TOTAL_RUN_TIME: 123456,
36-
RoborockDyadDataProtocol.STAND_LOCK_AUTO_RUN: 1,
37-
RoborockDyadDataProtocol.AUTO_DRY_MODE: 0,
28+
209: 1, # POWER
29+
201: 6, # STATUS
30+
207: 3, # WATER_LEVEL
31+
214: 120, # MESH_LEFT
32+
215: 90, # BRUSH_LEFT
33+
227: 85, # SILENT_MODE_START_TIME
34+
229: "3,4,5", # RECENT_RUN_TIME
35+
230: 123456, # TOTAL_RUN_TIME
36+
222: 1, # STAND_LOCK_AUTO_RUN
37+
224: 0, # AUTO_DRY_MODE
3838
}
3939
result = await api.query_values(
4040
[

0 commit comments

Comments
 (0)