homebridge-tasmota-control 1.6.15-beta.11 → 1.6.15-beta.13

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/mielhvac.js +3 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Tasmota Control",
3
3
  "name": "homebridge-tasmota-control",
4
- "version": "1.6.15-beta.11",
4
+ "version": "1.6.15-beta.13",
5
5
  "description": "Homebridge plugin to control Tasmota flashed devices.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/mielhvac.js CHANGED
@@ -214,6 +214,8 @@ class MiElHvac extends EventEmitter {
214
214
 
215
215
  const power = miElHvac.Power === 'on' ? 1 : 0;
216
216
  const roomTemperature = miElHvac.Temperature ?? null;
217
+ if (!roomTemperature) return null;
218
+
217
219
  const outdoorTemperature = miElHvac.OutdoorTemperature ?? null;
218
220
  const setTemperature = miElHvac.SetTemperature;
219
221
  const operationMode = miElHvac.Mode ?? 'Unknown';
@@ -1233,7 +1235,7 @@ class MiElHvac extends EventEmitter {
1233
1235
  try {
1234
1236
  //check device state
1235
1237
  const checkState = await this.checkDeviceState();
1236
- if(!checkState) return;
1238
+ if(!checkState) return null;
1237
1239
 
1238
1240
  //connect to deice success
1239
1241
  this.emit('success', `Connect Success`)