Skip to content

Commit

Permalink
Add repeat param to Roborock segment clean
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBartusek committed May 3, 2023
1 parent 788df48 commit 238bd52
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions miio/integrations/roborock/vacuum/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -891,12 +891,16 @@ def resume_segment_clean(self):
return self.send("resume_segment_clean")

@command(click.argument("segments", type=LiteralParamType(), required=True))
def segment_clean(self, segments: List):
@command(click.argument("repeat", type=int, required=False, default=1))
def segment_clean(self, segments: List, repeat: int = 1):
"""Clean segments.
:param List segments: List of segments to clean: [16,17,18]
:param int repeat: Count of iterations
"""
return self.send("app_segment_clean", segments)
return self.send(
"app_segment_clean", [{"segments": segments, "repeat": repeat}]
)

@command()
def get_room_mapping(self):
Expand Down

0 comments on commit 238bd52

Please sign in to comment.