From 4b775e0fc80f349a99da7099d105f998d8d4696b Mon Sep 17 00:00:00 2001 From: Joolee Date: Fri, 24 Jul 2020 14:28:50 +0200 Subject: [PATCH] Fix writing to constant --- lib/SensorDevice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {