Skip to content
New issue

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

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

Already on GitHub? # to your account

Philips Eyecare: More safety property mapping of the device status #95

Merged
merged 5 commits into from
Oct 21, 2017

Conversation

syssi
Copy link
Collaborator

@syssi syssi commented Oct 21, 2017

No description provided.

"count (%s) of received values.",
properties_count, values_count)

return PhilipsEyecareStatus(defaultdict(lambda: None, zip(properties, values)))

Choose a reason for hiding this comment

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

line too long (87 > 79 characters)

@coveralls
Copy link

coveralls commented Oct 21, 2017

Coverage Status

Coverage increased (+0.03%) to 33.497% when pulling c7687b6 on syssi:feature/philips-eyecare-update into 67196c2 on rytilahti:master.

@rytilahti
Copy link
Owner

Can you also add typing hints while you are at it? Otherwise it looks fine for me.

@syssi
Copy link
Collaborator Author

syssi commented Oct 21, 2017

Sure!

@coveralls
Copy link

coveralls commented Oct 21, 2017

Coverage Status

Coverage increased (+0.03%) to 33.497% when pulling d70b75e on syssi:feature/philips-eyecare-update into 67196c2 on rytilahti:master.

@@ -61,7 +65,7 @@ def set_ambient_brightness(self, level: int):
"""Set Ambient Light brightness level."""
return self.send("set_amb_bright", [level])

def status(self):
def status(self) -> PhilipsEyecareStatus:

Choose a reason for hiding this comment

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

undefined name 'PhilipsEyecareStatus'

@coveralls
Copy link

coveralls commented Oct 21, 2017

Coverage Status

Coverage increased (+0.03%) to 33.497% when pulling 02307e5 on syssi:feature/philips-eyecare-update into 67196c2 on rytilahti:master.

@coveralls
Copy link

coveralls commented Oct 21, 2017

Coverage Status

Coverage increased (+0.03%) to 33.497% when pulling aff248d on syssi:feature/philips-eyecare-update into 67196c2 on rytilahti:master.

@rytilahti
Copy link
Owner

Thanks!

@rytilahti rytilahti merged commit a8d241d into rytilahti:master Oct 21, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants