homebridge-tasmota-control 1.6.1-beta.6 → 1.6.1-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sensors.js +1 -1
package/package.json
CHANGED
package/src/sensors.js
CHANGED
|
@@ -139,7 +139,7 @@ class Sensors extends EventEmitter {
|
|
|
139
139
|
|
|
140
140
|
//update characteristics
|
|
141
141
|
const update = (servicesArray, subtype, charName, value) => {
|
|
142
|
-
const service = servicesArray.find(s => s.subtype === subtype);
|
|
142
|
+
const service = servicesArray[i].find(s => s.subtype === subtype);
|
|
143
143
|
if (service && Characteristic[charName]) {
|
|
144
144
|
service.updateCharacteristic(Characteristic[charName], value);
|
|
145
145
|
}
|