homebridge-melcloud-control 4.3.2-beta.17 → 4.3.2-beta.18

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.3.2-beta.17",
4
+ "version": "4.3.2-beta.18",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -384,7 +384,7 @@ class MelCloudAta extends EventEmitter {
384
384
  data: payload
385
385
  });
386
386
 
387
- await this.updateData(deviceData, updateState);
387
+ this.updateData(deviceData, updateState);
388
388
  return true;
389
389
  default:
390
390
  return;
@@ -395,9 +395,9 @@ class MelCloudAta extends EventEmitter {
395
395
  }
396
396
  }
397
397
 
398
- async updateData(deviceData, updateState = true) {
398
+ updateData(deviceData, updateState = true) {
399
399
  this.locks = true;
400
- if (updateState) await this.updateState(deviceData);
400
+ if (updateState) this.emit('deviceState', deviceData);
401
401
 
402
402
  setTimeout(() => {
403
403
  this.locks = false