diff --git a/lib/SensorDevice.js b/lib/SensorDevice.js index d36ca67..ba83f2a 100644 --- a/lib/SensorDevice.js +++ b/lib/SensorDevice.js @@ -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) {