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

wrap vacuum's dnd status inside an object #87

Merged
merged 2 commits into from
Oct 12, 2017

Conversation

rytilahti
Copy link
Owner

allows 3rd party usage without parsing the raw data


@property
def start(self) -> time:
return time(hour=self.data["start_hour"], minute=self.data["start_minute"])

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)

@@ -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:

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


@property
def start(self) -> time:
return time(hour=self.data["start_hour"], minute=self.data["start_minute"])

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)

@@ -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:

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

@rytilahti rytilahti changed the title wrap dnd status inside an object wrap vacuum's dnd status inside an object Oct 7, 2017
@coveralls
Copy link

coveralls commented Oct 7, 2017

Coverage Status

Coverage increased (+0.2%) to 33.06% when pulling f461ed0 on vacuum_proper_wrap_dndstatus into eda0993 on master.

@rytilahti rytilahti force-pushed the vacuum_proper_wrap_dndstatus branch from f461ed0 to d9412c7 Compare October 7, 2017 18:25
@coveralls
Copy link

coveralls commented Oct 7, 2017

Coverage Status

Coverage increased (+0.2%) to 33.06% when pulling d9412c7 on vacuum_proper_wrap_dndstatus into eda0993 on master.

@coveralls
Copy link

coveralls commented Oct 7, 2017

Coverage Status

Coverage increased (+0.2%) to 33.06% when pulling 8554e2e on vacuum_proper_wrap_dndstatus into eda0993 on master.

@syssi syssi merged commit fdcfb76 into master Oct 12, 2017
@syssi
Copy link
Collaborator

syssi commented Oct 12, 2017

Looks good!

@rytilahti rytilahti deleted the vacuum_proper_wrap_dndstatus branch October 21, 2017 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants