homebridge-melcloud-control 4.3.3-beta.3 → 4.3.3-beta.4

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/melcloudata.js +10 -16
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "MELCloud Control",
3
3
  "name": "homebridge-melcloud-control",
4
- "version": "4.3.3-beta.3",
4
+ "version": "4.3.3-beta.4",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -368,24 +368,18 @@ class MelCloudAta extends EventEmitter {
368
368
  path = ApiUrlsHome.PutAta.replace('deviceid', deviceData.DeviceID);
369
369
  headers.Referer = ApiUrlsHome.Referers.PutDeviceSettings;
370
370
  updateState = false;
371
- this.socket.send(JSON.stringify([{
372
- messageType: 'setUnitSettings',
373
- Data: {
374
- id: deviceData.DeviceID,
375
- settings: {
376
- "messageType": "unitStateChanged",
377
- "Data": {
378
- "id": deviceData.DeviceID,
379
- "settings": [
380
- {
381
- "name": "Power",
382
- "value": deviceData.Device.Power
383
- }
384
- ]
371
+ this.socket.send(JSON.stringify({
372
+ "messageType": "unitStateChanged",
373
+ "Data": {
374
+ "id": deviceData.DeviceID,
375
+ "settings": [
376
+ {
377
+ "name": "Power",
378
+ "value": deviceData.Device.Power
385
379
  }
386
- }
380
+ ]
387
381
  }
388
- }]));
382
+ }));
389
383
  return;
390
384
  }
391
385