Further cleanup
This commit is contained in:
@@ -132,7 +132,6 @@ class Watch {
|
|||||||
#compare(a, b, operator) {
|
#compare(a, b, operator) {
|
||||||
|
|
||||||
// Hint: a = currentState, b = targetState
|
// Hint: a = currentState, b = targetState
|
||||||
|
|
||||||
switch (operator) {
|
switch (operator) {
|
||||||
case '==':
|
case '==':
|
||||||
return (a == b);
|
return (a == b);
|
||||||
@@ -223,7 +222,6 @@ class Watch {
|
|||||||
|
|
||||||
// Create timer to run repeat alert rule if required
|
// Create timer to run repeat alert rule if required
|
||||||
if (this.#watchObjects[watchUUID].alertRepeat != '') {
|
if (this.#watchObjects[watchUUID].alertRepeat != '') {
|
||||||
console.log('wiederholter alert notwendig');
|
|
||||||
this.#watchObjects[watchUUID].repeatAlertTimer = actions.ScriptExecution.createTimer('repeatAlarm ' + watchUUID,
|
this.#watchObjects[watchUUID].repeatAlertTimer = actions.ScriptExecution.createTimer('repeatAlarm ' + watchUUID,
|
||||||
time.toZDT(this.#watchObjects[watchUUID].alertDelay + this.#watchObjects[watchUUID].alertRepeat),
|
time.toZDT(this.#watchObjects[watchUUID].alertDelay + this.#watchObjects[watchUUID].alertRepeat),
|
||||||
() => {
|
() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user