Skip to content

Commit 7a7a303

Browse files
committed
fix: add some new roborock codes
1 parent 2731bce commit 7a7a303

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
@@ -30,11 +30,11 @@
3030
RoborockInCleaning,
3131
RoborockMopIntensityCode,
3232
RoborockMopIntensityP10,
33+
RoborockMopIntensityQ7Max,
3334
RoborockMopIntensityS5Max,
3435
RoborockMopIntensityS6MaxV,
3536
RoborockMopIntensityS7,
3637
RoborockMopIntensityS8MaxVUltra,
37-
RoborockMopIntensityV2,
3838
RoborockMopModeCode,
3939
RoborockMopModeS7,
4040
RoborockMopModeS8MaxVUltra,
@@ -512,7 +512,7 @@ class S5MaxStatus(Status):
512512
@dataclass
513513
class Q7MaxStatus(Status):
514514
fan_power: RoborockFanSpeedQ7Max | None = None
515-
water_box_mode: RoborockMopIntensityV2 | None = None
515+
water_box_mode: RoborockMopIntensityQ7Max | None = None
516516

517517

518518
@dataclass

0 commit comments

Comments
 (0)