-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[salus] Initial contribution #16065
[salus] Initial contribution #16065
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
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.
Thank you for your contribution!
This is not a full review, just a few comments.
Besides that, a few things need to be resolved:
- please check SAT warnings, mvn verify will create target/summary_report.html... it should be at least closer to 0
- too many compilation warnings (Null) - maybe a few vanish when you resolve SAT warnings
- SAT shows a forbidden package StringUtils - maybe @lolodomo can comment on this, we have some utils in core as well....
i18n seems ok, javadoc build is fine as well.
...nding.salus/src/main/java/org/openhab/binding/salus/internal/handler/CloudBridgeHandler.java
Outdated
Show resolved
Hide resolved
...ab.binding.salus/src/main/java/org/openhab/binding/salus/internal/handler/DeviceHandler.java
Outdated
Show resolved
Hide resolved
...hab.binding.salus/src/main/java/org/openhab/binding/salus/internal/handler/It600Handler.java
Outdated
Show resolved
Hide resolved
...hab.binding.salus/src/main/java/org/openhab/binding/salus/internal/handler/It600Handler.java
Outdated
Show resolved
Hide resolved
.../org.openhab.binding.salus/src/main/java/org/openhab/binding/salus/internal/rest/Device.java
Outdated
Show resolved
Hide resolved
...rg.openhab.binding.salus/src/main/java/org/openhab/binding/salus/internal/rest/SalusApi.java
Outdated
Show resolved
Hide resolved
....openhab.binding.salus/src/main/java/org/openhab/binding/salus/internal/rest/GsonMapper.java
Outdated
Show resolved
Hide resolved
....openhab.binding.salus/src/main/java/org/openhab/binding/salus/internal/rest/GsonMapper.java
Outdated
Show resolved
Hide resolved
...hab.binding.salus/src/main/java/org/openhab/binding/salus/internal/rest/JettyHttpClient.java
Outdated
Show resolved
Hide resolved
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
give it a few hours to settle, Kai is creating the 4.1 release.... |
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.
Great progress, thanks!
Lets take a look at the other topics:
- apache.commons should removed. See Removal of dependency on 'org.apache.commons.*' #7722. I marked a few easy things. Could you please care for replacing
Pair
? - Still a lot of null warnings, a few seem to be correct and need additional checks in the code. See also my comment in the source file for one example. I have also seen a null check before accessing a variable - but there is still a warning, as the variable might be changed in the background. To avoid the warning, work with a local copy, do the null check on the copy, call the methods on the copy.
I think in the tests - especially when using mockito - the warnings could be suppressed, but I leave that to a maintainer. - I noticed that you are using type inference a lot (var). I was previously asked to remove this. But that is something for a maintainer to comment on as well....
...binding.salus/src/main/java/org/openhab/binding/salus/internal/discovery/CloudDiscovery.java
Outdated
Show resolved
Hide resolved
...binding.salus/src/main/java/org/openhab/binding/salus/internal/discovery/CloudDiscovery.java
Outdated
Show resolved
Hide resolved
...ab.binding.salus/src/main/java/org/openhab/binding/salus/internal/handler/DeviceHandler.java
Outdated
Show resolved
Hide resolved
...ab.binding.salus/src/main/java/org/openhab/binding/salus/internal/handler/DeviceHandler.java
Outdated
Show resolved
Hide resolved
...nding.salus/src/main/java/org/openhab/binding/salus/internal/handler/CloudBridgeHandler.java
Outdated
Show resolved
Hide resolved
...nding.salus/src/main/java/org/openhab/binding/salus/internal/handler/CloudBridgeHandler.java
Outdated
Show resolved
Hide resolved
...nding.salus/src/main/java/org/openhab/binding/salus/internal/handler/CloudBridgeHandler.java
Outdated
Show resolved
Hide resolved
...hab.binding.salus/src/main/java/org/openhab/binding/salus/internal/rest/JettyHttpClient.java
Outdated
Show resolved
Hide resolved
This comment was marked as resolved.
This comment was marked as resolved.
Thanks, this is really good progress. |
bundles/org.openhab.binding.salus/src/main/resources/OH-INF/addon/addon.xml
Show resolved
Hide resolved
...nhab.binding.salus/src/main/java/org/openhab/binding/salus/internal/rest/DeviceProperty.java
Show resolved
Hide resolved
This comment was marked as resolved.
This comment was marked as resolved.
Did not check, I interpreted the warning as if they would have been ignored..... |
@magx2 I think that is all I can help here. My comments have been addressed. |
This comment was marked as resolved.
This comment was marked as resolved.
Wait for a maintainer to pick this up. This usually takes time... |
It would also be usefull to add yourself to the codeowner file, so that in future PR's you are automatically added as reviewer. |
This comment was marked as resolved.
This comment was marked as resolved.
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 your contribution!
Ran out of time, so no full review, just quick comments. I reviewed the bridgehandler and when looking at the device handler i would repeat most comments. Please check if the comments also apply to other classes.
Ping when you're ready and i'll proceed with the review.
...binding.salus/src/main/java/org/openhab/binding/salus/internal/discovery/CloudDiscovery.java
Outdated
Show resolved
Hide resolved
...nding.salus/src/main/java/org/openhab/binding/salus/internal/handler/CloudBridgeHandler.java
Outdated
Show resolved
Hide resolved
...nding.salus/src/main/java/org/openhab/binding/salus/internal/handler/CloudBridgeHandler.java
Outdated
Show resolved
Hide resolved
...nding.salus/src/main/java/org/openhab/binding/salus/internal/handler/CloudBridgeHandler.java
Outdated
Show resolved
Hide resolved
...nding.salus/src/main/java/org/openhab/binding/salus/internal/handler/CloudBridgeHandler.java
Outdated
Show resolved
Hide resolved
...ab.binding.salus/src/main/java/org/openhab/binding/salus/internal/handler/DeviceHandler.java
Show resolved
Hide resolved
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Martin <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Martin <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
…nding/salus/internal/rest/SalusApiException.java Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Martin <martin.grzeslowski@gmail.com>
…8n/salus.properties Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Martin <martin.grzeslowski@gmail.com>
Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com>
Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Martin <martin.grzeslowski@gmail.com>
@lsiepel I've applied your changes. Also testing of the plugin was already done by my (after each major change I'm deploying Salus binding in my own OH instance) |
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.
Thank you for this contribution. LGTM.
Now, you could add your binding's logo to the openHAB website. See https://www.openhab.org/docs/developer/addons/#add-your-add-on-s-logo-to-the-openhab-website
SVG is preferred:
https://next.openhab.org/docs/developer/addons/#add-your-add-on-s-logo-to-the-openhab-website-and-the-ui
* Init salus binding Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com> Co-authored-by: Holger Friedrich <mail@holger-friedrich.de> Co-authored-by: Leo Siepel <leosiepel@gmail.com> Signed-off-by: Paul Smedley <paul@smedley.id.au>
* Init salus binding Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com> Co-authored-by: Holger Friedrich <mail@holger-friedrich.de> Co-authored-by: Leo Siepel <leosiepel@gmail.com> Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
* Init salus binding Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com> Co-authored-by: Holger Friedrich <mail@holger-friedrich.de> Co-authored-by: Leo Siepel <leosiepel@gmail.com>
* Init salus binding Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com> Co-authored-by: Holger Friedrich <mail@holger-friedrich.de> Co-authored-by: Leo Siepel <leosiepel@gmail.com>
* Init salus binding Signed-off-by: Martin Grześlowski <martin.grzeslowski@gmail.com> Co-authored-by: Holger Friedrich <mail@holger-friedrich.de> Co-authored-by: Leo Siepel <leosiepel@gmail.com> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
[salus] Initial contribution
Description
This is a new binding that is responsible to connect to Salus Cloud. Please refer to README.md to get more information.