homebridge-tasmota-control 1.6.15-beta.8 → 1.6.15-beta.9
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/mielhvac.js +6 -0
package/package.json
CHANGED
package/src/mielhvac.js
CHANGED
|
@@ -206,6 +206,12 @@ class MiElHvac extends EventEmitter {
|
|
|
206
206
|
|
|
207
207
|
//mielhvac
|
|
208
208
|
const miElHvac = statusSns.MiElHVAC ?? {};
|
|
209
|
+
|
|
210
|
+
if (!miElHvac) {
|
|
211
|
+
this.emit('warn', "Empty data received");
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
|
|
209
215
|
const power = miElHvac.Power === 'on' ? 1 : 0;
|
|
210
216
|
const roomTemperature = miElHvac.Temperature ?? null;
|
|
211
217
|
const outdoorTemperature = miElHvac.OutdoorTemperature ?? null;
|