homebridge-melcloud-control 4.0.0-beta.105 → 4.0.0-beta.106

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.105",
4
+ "version": "4.0.0-beta.106",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/deviceata.js CHANGED
@@ -327,7 +327,6 @@ class DeviceAta extends EventEmitter {
327
327
  break;
328
328
  };
329
329
 
330
- if (this.accountDisplayType === 'melcloudhome') deviceData.Device.OperationMode = ApiUrlsHome.OperationModeMapEnumToString[deviceData.Device.OperationMode];
331
330
  deviceData.Device.EffectiveFlags = AirConditioner.EffectiveFlags.OperationModeSetTemperature;
332
331
  await this.melCloudAta.send(this.accountDisplayType, deviceData, this.displayMode);
333
332
  const operationModeText = AirConditioner.OperationMode[deviceData.Device.OperationMode];
@@ -340,6 +340,7 @@ class MelCloudAta extends EventEmitter {
340
340
  break;
341
341
  };
342
342
 
343
+ deviceData.Device.OperationMode = ApiUrlsHome.OperationModeMapEnumToString[deviceData.Device.OperationMode];
343
344
  const payload = {
344
345
  data: {
345
346
  power: deviceData.Device.Power,