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

added support for zhimi.humidifier.cb2 #917

Merged
merged 1 commit into from
Mar 8, 2021
Merged

added support for zhimi.humidifier.cb2 #917

merged 1 commit into from
Mar 8, 2021

Conversation

harusame3144
Copy link
Contributor

No description provided.

miio/airhumidifier.py Outdated Show resolved Hide resolved
@harusame3144 harusame3144 changed the title add support zhimi.humidifier.cb2 added support for zhimi.humidifier.cb2 Jan 23, 2021
@@ -180,6 +183,11 @@ def motor_speed(self) -> Optional[int]:
@property
def depth(self) -> Optional[int]:
"""The remaining amount of water in percent."""

# MODEL_HUMIDIFIER_CB2 127 without water tank. 125 = 100% water
if self.device_info.model == MODEL_HUMIDIFIER_CB2:
Copy link
Collaborator

Choose a reason for hiding this comment

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

You could introduce a new boolean property to indicate the water tank is detached.

Copy link
Owner

Choose a reason for hiding this comment

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

Hi @syssi - do you want to get this change already into this PR, or shall we merge this already for the next release?

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.

LGTM!

@rytilahti rytilahti merged commit fa4a2f9 into rytilahti:master Mar 8, 2021
@rytilahti rytilahti mentioned this pull request Mar 13, 2021
xvlady pushed a commit to xvlady/python-miio that referenced this pull request May 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants