-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
Add zhimi.humidifier.cb1 support #493
Conversation
|
||
assert self.state().firmware_version == device_info.firmware_version | ||
assert self.state().firmware_version_major == device_info.firmware_version.rsplit('_', 1)[0] | ||
assert self.state().firmware_version_minor == int(device_info.firmware_version.rsplit('_', 1)[1]) |
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 (105 > 100 characters)
@@ -27,8 +27,9 @@ | |||
] | |||
|
|||
AVAILABLE_PROPERTIES = { | |||
MODEL_HUMIDIFIER_V1: AVAILABLE_PROPERTIES_COMMON + ['trans_level', 'button_pressed'], | |||
MODEL_HUMIDIFIER_CA1: AVAILABLE_PROPERTIES_COMMON + ['speed', 'depth', 'dry'], | |||
MODEL_HUMIDIFIER_V1: AVAILABLE_PROPERTIES_COMMON + ['temp_dec', 'trans_level', 'button_pressed'], |
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 (101 > 100 characters)
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.
Good job! Thanks for your support!
Fixes #492.
I'm not familiar with Python3, please review. Pytest works fine.
Button pressed state maybe not work, always return None on my device (not well tested).