Skip to content

Commit

Permalink
Resume zoned clean from error state (#763)
Browse files Browse the repository at this point in the history
Resume zoned clean if currently in zoned clean and in error state
  • Loading branch information
r4nd0mbr1ck committed Jul 18, 2020
1 parent f478dc6 commit 65fbba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miio/vacuum.py
Expand Up @@ -112,7 +112,7 @@ def pause(self):
def resume_or_start(self):
"""A shortcut for resuming or starting cleaning."""
status = self.status()
if status.in_zone_cleaning and status.is_paused:
if status.in_zone_cleaning and (status.is_paused or status.got_error):
return self.resume_zoned_clean()

return self.start()
Expand Down

0 comments on commit 65fbba6

Please sign in to comment.