Skip to content

Commit

Permalink
Missed a spot in commit 4640634, found in issue #32
Browse files Browse the repository at this point in the history
  • Loading branch information
Joolee committed Mar 22, 2022
1 parent 80f07d0 commit bca0e6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/SensorDevice.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit bca0e6d

Please sign in to comment.