-
-
Notifications
You must be signed in to change notification settings - Fork 561
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
wrap vacuum's dnd status inside an object #87
Conversation
miio/vacuumcontainers.py
Outdated
|
||
@property | ||
def start(self) -> time: | ||
return time(hour=self.data["start_hour"], minute=self.data["start_minute"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (83 > 79 characters)
miio/vacuumcontainers.py
Outdated
@@ -325,6 +325,29 @@ def __repr__(self) -> str: | |||
return "<ConsumableStatus main: %s, side: %s, filter: %s, sensor dirty: %s>" % ( # noqa: E501 | |||
self.main_brush, self.side_brush, self.filter, self.sensor_dirty) | |||
|
|||
class DNDStatus: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expected 2 blank lines, found 1
miio/vacuumcontainers.py
Outdated
|
||
@property | ||
def start(self) -> time: | ||
return time(hour=self.data["start_hour"], minute=self.data["start_minute"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (83 > 79 characters)
miio/vacuumcontainers.py
Outdated
@@ -325,6 +325,29 @@ def __repr__(self) -> str: | |||
return "<ConsumableStatus main: %s, side: %s, filter: %s, sensor dirty: %s>" % ( # noqa: E501 | |||
self.main_brush, self.side_brush, self.filter, self.sensor_dirty) | |||
|
|||
class DNDStatus: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expected 2 blank lines, found 1
f461ed0
to
d9412c7
Compare
Looks good! |
allows 3rd party usage without parsing the raw data