1
0

Debugging internal watchItem naming

This commit is contained in:
2023-08-19 07:52:38 +02:00
parent 0d5f0985e0
commit 624c302fb7

View File

@@ -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)) {