-
-
Notifications
You must be signed in to change notification settings - Fork 569
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
Add support for deerma.humidifier.mjjsq #586
Conversation
a986d8c
to
3cd2a93
Compare
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.
Looks good to me, discovery & README should probably be updated before merging though.
@property | ||
def power(self) -> str: | ||
"""Power state.""" | ||
return "on" if self.data["OnOff_State"] == 1 else "off" |
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.
Is there a need to have both power
and is_on
? I'd prefer simply a single boolean variant of one of these.
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.
I would like to stick on this because of consistency and a nice status output of: "Power: on"
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.
Ok, your call.
Fixes: #533