1
0

Remove #compare

This commit is contained in:
2023-08-14 19:45:42 +02:00
parent 4b238fc065
commit 5df01b6ebb

View File

@@ -129,25 +129,6 @@ class Watch {
} }
} }
#compare(a, b, operator) {
// Hint: a = currentState, b = targetState
switch (operator) {
case '==':
return (a == b);
break;
case '!=':
return !(a == b);
break;
case '>':
return (a > b);
break;
case '<':
return (a < b);
break;
}
}
#createWatchRule() { #createWatchRule() {
// Create openHAB rule // Create openHAB rule
console.log('Create openHAB watch rule for item ' + this.#watchItemName); console.log('Create openHAB watch rule for item ' + this.#watchItemName);