Skip to content

Commit 9d69646

Browse files
committed
chore: add some comments that better explain 'get_mop_only_vacuum_mode'
1 parent 641a34e commit 9d69646

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

roborock/data/v1/v1_clean_modes.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,13 @@ def get_cleaning_mode_options(features: DeviceFeatures) -> list[CleaningMode]:
218218

219219

220220
def get_mop_only_vacuum_mode(features: DeviceFeatures) -> VacuumModes:
221+
"""Determine the vacuum mode to use when you just want to mop.
222+
223+
There are three cases that must be handled:
224+
1. The device does not support only mopping.
225+
2. The device supports raising the vacuum brush while mopping
226+
3. All other cases.
227+
"""
221228
if not features.is_pure_clean_mop_supported:
222229
raise RoborockUnsupportedFeature("Mop-only cleaning is not supported")
223230
if features.is_support_main_brush_up_down_supported:

0 commit comments

Comments
 (0)