Debugging internal watchItem naming
This commit is contained in:
@@ -121,7 +121,7 @@ class Watch {
|
|||||||
console.debug(`Check if item is in alert state for watchObject ${watchUUID}`)
|
console.debug(`Check if item is in alert state for watchObject ${watchUUID}`)
|
||||||
|
|
||||||
// Convert currentState for comparison
|
// Convert currentState for comparison
|
||||||
let currentState = lib.convertValue(this.watchItem.state);
|
let currentState = lib.convertValue(this.#watchItem.state);
|
||||||
|
|
||||||
// Do comparison
|
// Do comparison
|
||||||
if (lib.compare(currentState, this.#watchObjects[watchUUID].targetState, this.#watchObjects[watchUUID].operator)) { // Comparison successful
|
if (lib.compare(currentState, this.#watchObjects[watchUUID].targetState, this.#watchObjects[watchUUID].operator)) { // Comparison successful
|
||||||
@@ -185,7 +185,7 @@ class Watch {
|
|||||||
return;
|
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
|
// Iterate through watchObjetcs // todo: rework to only fetch UUID
|
||||||
for (let [watchUUID, watchObject] of Object.entries(this.#watchObjects)) {
|
for (let [watchUUID, watchObject] of Object.entries(this.#watchObjects)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user