Skip to content

Commit

Permalink
Fix writing to constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Joolee committed Jul 24, 2020
1 parent 007d064 commit 4b775e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SensorDevice.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ module.exports = class SensorDevice extends GeneralDevice {
setValue(key, value) {
const [taskValue, taskSettings] = this.getValueInfo(this.task, key);

const capabilityName = null;
let capabilityName = null;
if (taskSettings.values) {
capabilityName = taskSettings.values[taskValue.ValueNumber - 1];
} else if (taskSettings.variants) {
Expand Down

0 comments on commit 4b775e0

Please sign in to comment.