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

Add zhimi.humidifier.cb1 support #493

Merged
merged 3 commits into from
Apr 10, 2019
Merged

Add zhimi.humidifier.cb1 support #493

merged 3 commits into from
Apr 10, 2019

Conversation

antylama
Copy link
Contributor

@antylama antylama commented Apr 3, 2019

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).


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])

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)

miio/tests/test_airhumidifier.py Outdated Show resolved Hide resolved
miio/airhumidifier.py Show resolved Hide resolved
@@ -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'],

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)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 71.769% when pulling 6de20ae on antylama:master into 11b88f6 on rytilahti:master.

@coveralls
Copy link

coveralls commented Apr 3, 2019

Coverage Status

Coverage increased (+0.03%) to 71.769% when pulling c0b82fa on antylama:master into 11b88f6 on rytilahti:master.

Copy link
Collaborator

@syssi syssi left a 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!

@syssi syssi merged commit feea7fc into rytilahti:master Apr 10, 2019
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.

5 participants