-
-
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
[basicprofiles] Fix division-by-zero error in $DELTA_PERCENT state filter #18089
[basicprofiles] Fix division-by-zero error in $DELTA_PERCENT state filter #18089
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.
LGTM
eb982f9
to
d844ddd
Compare
rebased and ready |
d844ddd
to
9eea794
Compare
rebased again to resolve conflicts |
.../src/main/java/org/openhab/transform/basicprofiles/internal/profiles/StateFilterProfile.java
Show resolved
Hide resolved
.../test/java/org/openhab/transform/basicprofiles/internal/profiles/StateFilterProfileTest.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/openhab/transform/basicprofiles/internal/profiles/StateFilterProfile.java
Outdated
Show resolved
Hide resolved
…lter Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
9eea794
to
0e07cd4
Compare
Rebased + removed duplicate tests |
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
.../src/main/java/org/openhab/transform/basicprofiles/internal/profiles/StateFilterProfile.java
Show resolved
Hide resolved
.../src/main/java/org/openhab/transform/basicprofiles/internal/profiles/StateFilterProfile.java
Show resolved
Hide resolved
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
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 :)
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
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.
I am not understanding the functional of this PR but code looks good.
…lter (openhab#18089) * [basicprofiles] Fix division-by-zero error in $DELTA_PERCENT state filter * use Optional for acceptedState Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au> Signed-off-by: Christian Koch <78686276+chilobo@users.noreply.github.com>
…lter (openhab#18089) * [basicprofiles] Fix division-by-zero error in $DELTA_PERCENT state filter * use Optional for acceptedState Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
…lter (#18089) * [basicprofiles] Fix division-by-zero error in $DELTA_PERCENT state filter * use Optional for acceptedState Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
@jimtng - this has now also been cherry-picked into 4.3.x. |
This should also be backported