-
-
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 support for Yeelight Dual Control Module (yeelink.switch.sw1) #887
Add support for Yeelight Dual Control Module (yeelink.switch.sw1) #887
Conversation
c5379f6
to
776b23c
Compare
776b23c
to
1dd50f1
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.
Thanks for the PR! I added some preliminary comments inline. Could you also add some tests?
80b12ef
to
63bae67
Compare
@rytilahti I updated PR, including all your comments. It's ready for review |
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.
Sorry for the delay!
A couple of minor things:
- Docstrings &
format_output()
s should be consistent with the casing used by other integrations. - Check out if the
get_properties_for_mapping()
works for this device
63bae67
to
8aabf4f
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.
LGTM! If the API feels "odd", we can always improve on that in the future, thanks for the PR! 🥇
dff66c8
to
ae5c854
Compare
ae5c854
to
db9e4bb
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.
👍 can be merged as soon as the tests pass, thanks again!
Can your please link home assistant pull request, or the pr has not yet been created in the home assistant ? |
I didn't create HA PR yet. But planning to do it. |
Added support Yeelight Dual Control Module (yeelink.switch.sw1) from #627 list.
This switch doesn’t have LAN-mode and cannot be controlled via python-yeelight