homebridge-tasmota-control 1.6.2-beta.2 → 1.6.2-beta.3
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 +3 -3
package/package.json
CHANGED
package/src/sensors.js
CHANGED
|
@@ -133,6 +133,9 @@ class Sensors extends EventEmitter {
|
|
|
133
133
|
obj.tempUnit = '°C';
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
+
//push to array
|
|
137
|
+
this.sensors.push(obj);
|
|
138
|
+
|
|
136
139
|
//update characteristics
|
|
137
140
|
this.sensorTemperatureServices?.[i]?.Characteristic?.CurrentTemperature?.updateCharacteristic(Characteristic.CurrentTemperature, obj.temperature);
|
|
138
141
|
this.sensorReferenceTemperatureServices?.[i]?.Characteristic?.CurrentTemperature?.updateCharacteristic(Characteristic.CurrentTemperature, obj.referenceTemperature);
|
|
@@ -166,9 +169,6 @@ class Sensors extends EventEmitter {
|
|
|
166
169
|
|
|
167
170
|
const debug1 = this.enableDebugMode ? this.emit('debug', `Sensor: ${JSON.stringify(obj, null, 2)}`) : false;
|
|
168
171
|
this.emit('warn', `Sensor: ${JSON.stringify(obj, null, 2)}`)
|
|
169
|
-
|
|
170
|
-
//push to array
|
|
171
|
-
this.sensors.push(obj);
|
|
172
172
|
i++;
|
|
173
173
|
}
|
|
174
174
|
this.sensorsCount = this.sensors.length;
|