Skip to content

Commit 4d56021

Browse files
authored
fix: add missing s5 codes (#116)
* fix: add missing codes for s5 max * chore: lint
1 parent 1731b77 commit 4d56021

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
@@ -163,6 +163,7 @@ class RoborockFanSpeedS6Pure(RoborockFanPowerCode):
163163
balanced = 102
164164
turbo = 103
165165
max = 104
166+
custom = 106
166167

167168

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

228229

230+
class RoborockMopIntensityS5Max(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 RoborockDockErrorCode(RoborockEnum):
230241
"""Describes the error code of the dock."""
231242

roborock/containers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
RoborockFanSpeedS7,
2323
RoborockFanSpeedS7MaxV,
2424
RoborockMopIntensityCode,
25+
RoborockMopIntensityS5Max,
2526
RoborockMopIntensityS7,
2627
RoborockMopIntensityV2,
2728
RoborockMopModeCode,
@@ -309,7 +310,7 @@ class S4MaxStatus(Status):
309310
@dataclass
310311
class S5MaxStatus(Status):
311312
fan_power: Optional[RoborockFanSpeedS6Pure] = None
312-
water_box_mode: Optional[RoborockMopIntensityV2] = None
313+
water_box_mode: Optional[RoborockMopIntensityS5Max] = None
313314

314315

315316
@dataclass

0 commit comments

Comments
 (0)