From bca0e6d5630fd5f3da9c96fd1d3804e541543b19 Mon Sep 17 00:00:00 2001 From: Joolee <570302+Joolee@users.noreply.github.com> Date: Tue, 22 Mar 2022 13:46:27 +0100 Subject: [PATCH] Missed a spot in commit 4640634, found in issue #32 --- lib/SensorDevice.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/SensorDevice.js b/lib/SensorDevice.js index 7e07740..2426eaa 100644 --- a/lib/SensorDevice.js +++ b/lib/SensorDevice.js @@ -119,13 +119,13 @@ module.exports = class SensorDevice extends GeneralDevice { getValueInfo(task, key) { const taskValue = task.TaskValues.find(t => t.Name == key); if (!taskValue) { - this.log('Could not find task value named', key); + this.log('Could not find task value named', task, key); return false; } - const taskSettings = this.getDriver().taskTypes.find(t => t.name == task.Type); + const taskSettings = this.getDriver().taskTypes.find(t => t.name == task.normalizedType); if (!taskSettings) { - this.log('No settings found for this task', key); + this.log('No settings found for this task', task, key); return false; }