homebridge-melcloud-control 4.0.0-beta.122 → 4.0.0-beta.123

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.0.0-beta.122",
4
+ "version": "4.0.0-beta.123",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -303,9 +303,10 @@ class MelCloudAta extends EventEmitter {
303
303
 
304
304
  //set target temp based on display mode and operation mode
305
305
  this.emit('warn', JSON.stringify(deviceData.Device, null, 2));
306
+ const operationMode = deviceData.Device.OperationMode;
306
307
  switch (displayMode) {
307
308
  case 1: //Heather/Cooler
308
- switch (deviceData.Device.OperationMode) {
309
+ switch (operationMode) {
309
310
  case 1: //HEAT
310
311
  deviceData.Device.SetTemperature = deviceData.Device.DefaultHeatingSetTemperature;
311
312
  break;