You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: bundles/org.openhab.transform.basicprofiles/src/main/java/org/openhab/transform/basicprofiles/internal/profiles/StateFilterProfile.java
+14
Original file line number
Diff line number
Diff line change
@@ -334,6 +334,7 @@ public boolean check(State input) {
334
334
StaterhsState = this.rhsState;
335
335
ItemlhsItem = null;
336
336
ItemrhsItem = null;
337
+
booleanisDeltaCheck = false;
337
338
338
339
if (rhsState == null) {
339
340
rhsItem = getItemOrNull(rhsString);
@@ -387,6 +388,9 @@ public boolean check(State input) {
387
388
logger.debug("Couldn't calculate the left hand side function '{}'", lhsString);
388
389
returnfalse;
389
390
}
391
+
if (lhsFunction.getType() == FunctionType.Function.DELTA) {
392
+
isDeltaCheck = true;
393
+
}
390
394
}
391
395
392
396
if (rhsState == null) {
@@ -395,6 +399,10 @@ public boolean check(State input) {
395
399
396
400
// Don't convert QuantityType to other types, so that 1500 != 1500 W
397
401
if (rhsState != null && !(rhsStateinstanceofQuantityType)) {
Copy file name to clipboardexpand all lines: bundles/org.openhab.transform.basicprofiles/src/test/java/org/openhab/transform/basicprofiles/internal/profiles/StateFilterProfileTest.java
+62
Original file line number
Diff line number
Diff line change
@@ -793,6 +793,68 @@ public static Stream<Arguments> testFunctions() {
0 commit comments