Skip to content

Commit

Permalink
Support resume_or_start for vacuum's segment cleaning (rytilahti#894)
Browse files Browse the repository at this point in the history
Added check if in segment cleaning and if so then resume segment clean
  • Loading branch information
Sian-Lee-SA authored and xvlady committed May 9, 2021
1 parent 8163cde commit 280619d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions miio/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ def resume_or_start(self):
status = self.status()
if status.in_zone_cleaning and (status.is_paused or status.got_error):
return self.resume_zoned_clean()
if status.in_segment_cleaning and (status.is_paused or status.got_error):
return self.resume_segment_clean()

return self.start()

Expand Down

0 comments on commit 280619d

Please sign in to comment.