Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add some new roborock codes #233

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -30,11 +30,11 @@
RoborockInCleaning,
RoborockMopIntensityCode,
RoborockMopIntensityP10,
RoborockMopIntensityQ7Max,
RoborockMopIntensityS5Max,
RoborockMopIntensityS6MaxV,
RoborockMopIntensityS7,
RoborockMopIntensityS8MaxVUltra,
RoborockMopIntensityV2,
RoborockMopModeCode,
RoborockMopModeS7,
RoborockMopModeS8MaxVUltra,
Expand Down Expand Up @@ -512,7 +512,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
Loading