-
-
Notifications
You must be signed in to change notification settings - Fork 566
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
Philips Eyecare: More safety property mapping of the device status #95
Philips Eyecare: More safety property mapping of the device status #95
Conversation
miio/philips_eyecare.py
Outdated
"count (%s) of received values.", | ||
properties_count, values_count) | ||
|
||
return PhilipsEyecareStatus(defaultdict(lambda: None, zip(properties, values))) |
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 (87 > 79 characters)
Can you also add typing hints while you are at it? Otherwise it looks fine for me. |
Sure! |
miio/philips_eyecare.py
Outdated
@@ -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: |
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.
undefined name 'PhilipsEyecareStatus'
Thanks! |
No description provided.