Skip to content

Commit 8b57d50

Browse files
authored
fix: add custom code for p10 (#123)
1 parent d154e15 commit 8b57d50

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

roborock/code_mappings.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ class RoborockFanSpeedP10(RoborockFanPowerCode):
178178
balanced = 102
179179
turbo = 103
180180
max = 104
181+
custom = 106
181182
max_plus = 108
182183

183184

@@ -226,6 +227,16 @@ class RoborockMopIntensityV2(RoborockMopIntensityCode):
226227
custom = 207
227228

228229

230+
class RoborockMopIntensityP10(RoborockMopIntensityCode):
231+
"""Describes the mop intensity of the vacuum cleaner."""
232+
233+
off = 200
234+
low = 201
235+
medium = 202
236+
high = 203
237+
custom = 204
238+
239+
229240
class RoborockMopIntensityS5Max(RoborockMopIntensityCode):
230241
"""Describes the mop intensity of the vacuum cleaner."""
231242

roborock/containers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
RoborockFanSpeedS7,
2424
RoborockFanSpeedS7MaxV,
2525
RoborockMopIntensityCode,
26+
RoborockMopIntensityP10,
2627
RoborockMopIntensityS5Max,
2728
RoborockMopIntensityS7,
2829
RoborockMopIntensityV2,
@@ -362,7 +363,7 @@ class S8Status(Status):
362363
@dataclass
363364
class P10Status(Status):
364365
fan_power: RoborockFanSpeedP10 | None = None
365-
water_box_mode: RoborockMopIntensityV2 | None = None
366+
water_box_mode: RoborockMopIntensityP10 | None = None
366367
mop_mode: RoborockMopModeS8ProUltra | None = None
367368

368369

0 commit comments

Comments
 (0)