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 support for deerma.humidifier.mjjsq #586

Merged
merged 13 commits into from
Dec 4, 2019

Conversation

syssi
Copy link
Collaborator

@syssi syssi commented Dec 3, 2019

Fixes: #533

miio/airhumidifier.py Outdated Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Dec 3, 2019

Coverage Status

Coverage increased (+0.3%) to 72.406% when pulling 48615f3 on syssi:feature/deerma-humidifier-mjjsq-support into 8ff03fd on rytilahti:master.

@syssi syssi marked this pull request as ready for review December 3, 2019 20:10
@syssi syssi force-pushed the feature/deerma-humidifier-mjjsq-support branch from a986d8c to 3cd2a93 Compare December 4, 2019 08:15
Copy link
Owner

@rytilahti rytilahti left a comment

Choose a reason for hiding this comment

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

Looks good to me, discovery & README should probably be updated before merging though.

miio/airhumidifier_mjjsq.py Outdated Show resolved Hide resolved
@property
def power(self) -> str:
"""Power state."""
return "on" if self.data["OnOff_State"] == 1 else "off"
Copy link
Owner

Choose a reason for hiding this comment

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

Is there a need to have both power and is_on? I'd prefer simply a single boolean variant of one of these.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I would like to stick on this because of consistency and a nice status output of: "Power: on"

Copy link
Owner

Choose a reason for hiding this comment

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

Ok, your call.

miio/airhumidifier_mjjsq.py Outdated Show resolved Hide resolved
miio/airhumidifier_mjjsq.py Outdated Show resolved Hide resolved
miio/airhumidifier_mjjsq.py Outdated Show resolved Hide resolved
@syssi syssi merged commit 621aa85 into rytilahti:master Dec 4, 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.

Support for Mi Smart Humidifier (deerma.humidifier.mjjsq)
4 participants