From 624c302fb7885fc1787021f508900f62c7dba6f1 Mon Sep 17 00:00:00 2001 From: Christian Weimann Date: Sat, 19 Aug 2023 07:52:38 +0200 Subject: [PATCH] Debugging internal watchItem naming --- utils/watch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/watch.js b/utils/watch.js index 8e62799..be9ff7a 100644 --- a/utils/watch.js +++ b/utils/watch.js @@ -121,7 +121,7 @@ class Watch { console.debug(`Check if item is in alert state for watchObject ${watchUUID}`) // Convert currentState for comparison - let currentState = lib.convertValue(this.watchItem.state); + let currentState = lib.convertValue(this.#watchItem.state); // Do comparison if (lib.compare(currentState, this.#watchObjects[watchUUID].targetState, this.#watchObjects[watchUUID].operator)) { // Comparison successful @@ -185,7 +185,7 @@ class Watch { return; } - console.log(`Processing state ${this.watchItem.state} for ${this.#watchItem.name}`); + console.log(`Processing state ${this.#watchItem.state} for ${this.#watchItem.name}`); // Iterate through watchObjetcs // todo: rework to only fetch UUID for (let [watchUUID, watchObject] of Object.entries(this.#watchObjects)) {