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

gateway: add model property & implement SwitchOneChannel #722

Merged
merged 2 commits into from
Jun 11, 2020

Conversation

starkillerOG
Copy link
Contributor

implements the SwitchOneChannel device with status and control thanks to @miway80

adds a model property to the subdevice base class.
This could be used for the model to display in HomeAssistant device registry (could also use device_type_name, not sure what is better)
But more important this is needed in the future to easily add subscriptions to properties using the install_scripts of @bskaplou of PR #709

@coveralls
Copy link

coveralls commented Jun 10, 2020

Coverage Status

Coverage increased (+0.08%) to 73.416% when pulling d0d3eb0 on starkillerOG:patch-8 into 5dd8f31 on rytilahti:master.

@starkillerOG
Copy link
Contributor Author

@rytilahti all checks now pass, can this be merged?

@rytilahti rytilahti changed the title add model property & implement SwitchOneChannel gateway: add model property & implement SwitchOneChannel Jun 11, 2020
@rytilahti rytilahti merged commit 5e6fa21 into rytilahti:master Jun 11, 2020
xvlady pushed a commit to xvlady/python-miio that referenced this pull request May 9, 2021
* add model property & implement SwitchOneChannel

* fix black formatting
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.

3 participants