homebridge-melcloud-control 4.2.5-beta.25 → 4.2.5-beta.26

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.2.5-beta.25",
4
+ "version": "4.2.5-beta.26",
5
5
  "description": "Homebridge plugin to control Mitsubishi Air Conditioner, Heat Pump and Energy Recovery Ventilation.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -258,24 +258,23 @@ class MelCloudAta extends EventEmitter {
258
258
  data: payload
259
259
  });
260
260
 
261
- this.lock = true;
262
261
  this.updateData(deviceData);
263
262
  return true;
264
263
  default:
265
264
  return;
266
265
  }
267
266
  } catch (error) {
268
- this.lock = false;
269
267
  if (error.response?.status === 500) return true; // Return 500 for schedule hovewer working correct
270
268
  throw new Error(`Send data error: ${error.message}`);
271
269
  }
272
270
  }
273
271
 
274
272
  updateData(deviceData) {
273
+ this.locks = true;
275
274
  this.emit('deviceState', deviceData);
276
275
 
277
276
  setTimeout(() => {
278
- this.lock = false
277
+ this.locks = false
279
278
  }, 5000);
280
279
  }
281
280
  };
@@ -246,11 +246,11 @@ class MelCloudAtw extends EventEmitter {
246
246
  }
247
247
 
248
248
  updateData(deviceData) {
249
- this.lock = true;
249
+ this.locks = true;
250
250
  this.emit('deviceState', deviceData);
251
251
 
252
252
  setTimeout(() => {
253
- this.lock = false
253
+ this.locks = false
254
254
  }, 5000);
255
255
  }
256
256
  };
@@ -253,11 +253,11 @@ class MelCloudErv extends EventEmitter {
253
253
  }
254
254
 
255
255
  updateData(deviceData) {
256
- this.lock = true;
256
+ this.locks = true;
257
257
  this.emit('deviceState', deviceData);
258
258
 
259
259
  setTimeout(() => {
260
- this.lock = false
260
+ this.locks = false
261
261
  }, 5000);
262
262
  }
263
263
  };