File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
roborock/devices/traits/b01/q10 Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 11"""Traits for Q10 B01 devices."""
22
3- from roborock .data .b01_q10 .b01_q10_code_mappings import B01_Q10_DP
3+ from roborock .data .b01_q10 .b01_q10_code_mappings import B01_Q10_DP , YXCleanType
44
55from .command import CommandTrait
66
@@ -54,3 +54,17 @@ async def return_to_dock(self) -> None:
5454 command = B01_Q10_DP .START_DOCK_TASK ,
5555 params = {},
5656 )
57+
58+ async def empty_dustbin (self ) -> None :
59+ """Empty the dustbin at the dock."""
60+ await self ._command .send (
61+ command = B01_Q10_DP .START_DOCK_TASK ,
62+ params = 2 ,
63+ )
64+
65+ async def set_clean_mode (self , mode : YXCleanType ) -> None :
66+ """Set the cleaning mode (vacuum, mop, or both)."""
67+ await self ._command .send (
68+ command = B01_Q10_DP .CLEAN_MODE ,
69+ params = mode .code ,
70+ )
You can’t perform that action at this time.
0 commit comments