Skip to content

Commit

Permalink
fix: add some new roborock codes (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lash-L authored Nov 8, 2024
1 parent f08619d commit 59546dd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions roborock/code_mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ class RoborockMopModeS8ProUltra(RoborockMopModeCode):
class RoborockMopModeS8MaxVUltra(RoborockMopModeCode):
standard = 300
deep = 301
custom = 302
deep_plus = 303
fast = 304
deep_plus_pearl = 305
Expand Down Expand Up @@ -362,6 +363,16 @@ class RoborockMopIntensityS6MaxV(RoborockMopIntensityCode):
custom_water_flow = 207


class RoborockMopIntensityQ7Max(RoborockMopIntensityCode):
"""Describes the mop intensity of the vacuum cleaner."""

off = 200
low = 201
medium = 202
high = 203
custom_water_flow = 207


class RoborockDockErrorCode(RoborockEnum):
"""Describes the error code of the dock."""

Expand Down
4 changes: 2 additions & 2 deletions roborock/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
RoborockInCleaning,
RoborockMopIntensityCode,
RoborockMopIntensityP10,
RoborockMopIntensityQ7Max,
RoborockMopIntensityS5Max,
RoborockMopIntensityS6MaxV,
RoborockMopIntensityS7,
RoborockMopIntensityS8MaxVUltra,
RoborockMopIntensityV2,
RoborockMopModeCode,
RoborockMopModeS7,
RoborockMopModeS8MaxVUltra,
Expand Down Expand Up @@ -567,7 +567,7 @@ class S5MaxStatus(Status):
@dataclass
class Q7MaxStatus(Status):
fan_power: RoborockFanSpeedQ7Max | None = None
water_box_mode: RoborockMopIntensityV2 | None = None
water_box_mode: RoborockMopIntensityQ7Max | None = None


@dataclass
Expand Down

0 comments on commit 59546dd

Please sign in to comment.