-
-
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
[emotiva] Fix missing data in source channels #17365
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, left two minor comments.
Fine to merge for 4.3.0, for backporting, it would be nice to also have a user confirmed test to minimalise the risks for regression.
...ing.emotiva/src/main/java/org/openhab/binding/emotiva/internal/EmotivaUdpSendingService.java
Show resolved
Hide resolved
...ing.emotiva/src/main/java/org/openhab/binding/emotiva/internal/EmotivaUdpSendingService.java
Outdated
Show resolved
Hide resolved
98b35a0
to
365ba9d
Compare
Fixed the minor things. Where you thinking of an unit test or an actual user test? |
Depends on the extend of the unit tests. Add tests if you can and will see, |
@espenaf do you plan to add unit tests to this PR? |
I have started looking into it, but discovered I need to refactor a few things to be able to write some proper tests for this. Hopefully I will get it done over the weekend, but it could also be a separate PR to not cram to many changes into this fix. |
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 providing some tests! Left some comments, i think these are the last ones. There is also a conflict to resolve.
...ding.emotiva/src/main/java/org/openhab/binding/emotiva/internal/EmotivaProcessorHandler.java
Show resolved
Hide resolved
...ding.emotiva/src/main/java/org/openhab/binding/emotiva/internal/EmotivaProcessorHandler.java
Outdated
Show resolved
Hide resolved
...ding.emotiva/src/main/java/org/openhab/binding/emotiva/internal/EmotivaProcessorHandler.java
Outdated
Show resolved
Hide resolved
...inding.emotiva/src/main/java/org/openhab/binding/emotiva/internal/EmotivaProcessorState.java
Outdated
Show resolved
Hide resolved
...inding.emotiva/src/main/java/org/openhab/binding/emotiva/internal/EmotivaProcessorState.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Espen Fossen <espenaf@junta.no>
7169948
to
1add674
Compare
Signed-off-by: Espen Fossen <espenaf@junta.no>
1add674
to
85fc0bf
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
How critical is this and justifies that the risk to backport, @espenaf wdyt? |
Missing the ability to change the source is quiet a key feature of an Processor/Reciever. The issue is also triggered by a race condition, so in that regard might be a very sporadic and unexplainable issue. This combination makes its justifier in my mind. It did become a bigger change than I was thinking, but in hindsight I should have coded it like this in the first place. |
Unfortunately backporting is causing merge conflicts, so i can't backport. |
Ok. I will put up som info on the community thread about the issue, so people can consider upgrading to 4.3.0-SNAPSHOT if they are experiencing it. |
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/emotiva-av-processor-binding/154406/2 |
* [emotiva] Fixes issue with missing data in source channels. Signed-off-by: Espen Fossen <espenaf@junta.no>
* [emotiva] Fixes issue with missing data in source channels. Signed-off-by: Espen Fossen <espenaf@junta.no>
Fixes #17363
Can be backported to 4.2.x