Skip to content

Commit 59546dd

Browse files
authored
fix: add some new roborock codes (#233)
1 parent f08619d commit 59546dd

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

roborock/code_mappings.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ class RoborockMopModeS8ProUltra(RoborockMopModeCode):
288288
class RoborockMopModeS8MaxVUltra(RoborockMopModeCode):
289289
standard = 300
290290
deep = 301
291+
custom = 302
291292
deep_plus = 303
292293
fast = 304
293294
deep_plus_pearl = 305
@@ -362,6 +363,16 @@ class RoborockMopIntensityS6MaxV(RoborockMopIntensityCode):
362363
custom_water_flow = 207
363364

364365

366+
class RoborockMopIntensityQ7Max(RoborockMopIntensityCode):
367+
"""Describes the mop intensity of the vacuum cleaner."""
368+
369+
off = 200
370+
low = 201
371+
medium = 202
372+
high = 203
373+
custom_water_flow = 207
374+
375+
365376
class RoborockDockErrorCode(RoborockEnum):
366377
"""Describes the error code of the dock."""
367378

roborock/containers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
RoborockInCleaning,
2929
RoborockMopIntensityCode,
3030
RoborockMopIntensityP10,
31+
RoborockMopIntensityQ7Max,
3132
RoborockMopIntensityS5Max,
3233
RoborockMopIntensityS6MaxV,
3334
RoborockMopIntensityS7,
3435
RoborockMopIntensityS8MaxVUltra,
35-
RoborockMopIntensityV2,
3636
RoborockMopModeCode,
3737
RoborockMopModeS7,
3838
RoborockMopModeS8MaxVUltra,
@@ -567,7 +567,7 @@ class S5MaxStatus(Status):
567567
@dataclass
568568
class Q7MaxStatus(Status):
569569
fan_power: RoborockFanSpeedQ7Max | None = None
570-
water_box_mode: RoborockMopIntensityV2 | None = None
570+
water_box_mode: RoborockMopIntensityQ7Max | None = None
571571

572572

573573
@dataclass

0 commit comments

Comments
 (0)