homebridge-melcloud-control 4.0.0-beta.187 → 4.0.0-beta.188

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.187",
4
+ "version": "4.0.0-beta.188",
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
@@ -240,7 +240,7 @@ class DeviceAta extends EventEmitter {
240
240
  //prepare accessory
241
241
  async prepareAccessory() {
242
242
  try {
243
- let deviceData = this.deviceData;
243
+ const deviceData = this.deviceData;
244
244
  const deviceId = this.deviceId;
245
245
  const deviceTypeText = this.deviceTypeText;
246
246
  const deviceName = this.deviceName;
@@ -166,6 +166,7 @@ class MelCloudAta extends EventEmitter {
166
166
 
167
167
  //emit state
168
168
  this.emit('deviceState', deviceData);
169
+ await new Promise(resolve => setTimeout(resolve, 1000));
169
170
 
170
171
  return true;
171
172
  } catch (error) {