Remove #compare
This commit is contained in:
@@ -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() {
|
||||
// Create openHAB rule
|
||||
console.log('Create openHAB watch rule for item ' + this.#watchItemName);
|
||||
|
||||
Reference in New Issue
Block a user