Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified to support zoned cleaning mode of Roborock S50. #160

Merged
merged 1 commit into from
Jan 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion miio/vacuumcontainers.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ def state(self) -> str:
12: 'Error',
13: 'Unknown 13',
14: 'Updating',
15: 'Unknown 15',
16: 'Unknown 16',
17: 'Zoned cleaning',
}
return states[int(self.state_code)]

Expand Down Expand Up @@ -208,7 +211,8 @@ def is_on(self) -> bool:
"""True if device is currently cleaning (either automatic, manual or spot)."""
return self.state_code == 5 or \
self.state_code == 7 or \
self.state_code == 11
self.state_code == 11 or \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

continuation line over-indented for visual indent

self.state_code == 17

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

continuation line over-indented for visual indent


@property
def got_error(self) -> bool:
Expand Down