homebridge-melcloud-control 4.0.0-beta.149 → 4.0.0-beta.150

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.149",
4
+ "version": "4.0.0-beta.150",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -306,8 +306,8 @@ class MelCloudAta extends EventEmitter {
306
306
 
307
307
  deviceData.Device.OperationMode = AirConditioner.OperationModeMapEnumToString[deviceData.Device.OperationMode];
308
308
  deviceData.Device.SetFanSpeed = deviceData.Device.SetFanSpeed.toString();
309
- deviceData.Device.VaneHorizontalDirection = deviceData.Device.VaneHorizontalDirection.toString();
310
- deviceData.Device.VaneVerticalDirection = deviceData.Device.VaneVerticalDirection.toString();
309
+ deviceData.Device.VaneHorizontalDirection = AirConditioner.VaneHorizontalDirectionMapEnumToString[deviceData.Device.VaneHorizontalDirection]
310
+ deviceData.Device.VaneVerticalDirection = AirConditioner.VaneVerticalDirectionMapEnumToString[deviceData.Device.VaneVerticalDirection]
311
311
  this.emit('warn', JSON.stringify(deviceData.Device, null, 2));
312
312
 
313
313
  const payload = {