-
-
Notifications
You must be signed in to change notification settings - Fork 561
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 viomi.waterheater.e1 devices #834
base: master
Are you sure you want to change the base?
Conversation
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! A brief initial review: please add an example response, follow the python naming conventions (foo_bar
instead of camelcased fooBar
). The property names should be descriptive instead of using the naming used by the protocol itself.
@rytilahti Thanks for great code review! I will make the code better as you request. |
@Zuz666 , any progress on this pr? 🙂 |
@rytilahti, yep, just check the latest commits! |
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 update! I added a couple of more comments. Could you also do the following:
- Add an entry to README.md
- Move the code to be under
miio/integrations/heater/viomiwaterheater/
- there are other heaters so we may have a common API among all of them at some point :-)
@rytilahti Job done! Please perform a code 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.
Looking good, I added a couple of very minor changes.
Could you also please add at least tests to the container functionality (see #1174 (review))?
Some code for testing done but how can I run this test? Newbie to python. ))) |
Simply execute You can also run the linting tests locally ( |
Just added basic support for 'Viomi Electric Water Heater' devices (viomi.waterheater.e1*): power on/off + status (retrieve properties). Fully tested on real device, works fine.