-
-
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 common interface for vacuums #1368
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1368 +/- ##
==========================================
+ Coverage 84.17% 84.18% +0.01%
==========================================
Files 133 135 +2
Lines 13330 13347 +17
Branches 1484 1485 +1
==========================================
+ Hits 11220 11236 +16
- Misses 1899 1900 +1
Partials 211 211
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
I do not have any experience with |
@rytilahti , could you please approve or reject the pull request? So I know whether it makes sense to continue on that. |
Correct. I was just thinking about not requiring all integrations to add all potential methods that should be a part of the common API. On hindsight, I think your proposal makes makes more sense. I.e., the abstract base class should provide the basic features that ought to be supported, and maybe extend that using protocols for extra features that can be implemented if the device supports such. So let's proceed with your proposal with the following changes:
|
Ready for merge |
@rytilahti , could you merge this one? I'll extend the API in next pull request. |
@rytilahti any updates? |
@rytilahti, could you merge this one? I'll extend the API in next pull request. |
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, just a minor nitpick wrt. the exported symbols and then this is good to go.
Btw, you can always use different code branches as a base branch for any future developments to avoid deadlocks when code reviews are pending :-)
@rytilahti , ready for merge again |
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 great, thanks for working on this @2pirko! The CI issue is unrelated so let's merge this.
Haleluja!!!!! |
Created first simple VaccumDevice interface