@homebridge-plugins/homebridge-tado 8.3.0-beta.3 → 8.3.0-beta.5

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebridge-plugins/homebridge-tado",
3
- "version": "8.3.0-beta.3",
3
+ "version": "8.3.0-beta.5",
4
4
  "description": "Homebridge plugin for controlling tado° devices.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -101,7 +101,7 @@ export default class ContactAccessory {
101
101
  this.deviceHandler.changedStates.bind(this, this.accessory, this.historyService, this.accessory.displayName)
102
102
  );
103
103
 
104
- if (!this.refreshHistoryHandlerRegistered) {
104
+ if (this.FakeGatoHistoryService && !this.refreshHistoryHandlerRegistered) {
105
105
  this.deviceHandler.refreshHistoryHandlers.push(() => this.refreshHistory(service));
106
106
  this.refreshHistoryHandlerRegistered = true;
107
107
  }
@@ -324,7 +324,7 @@ export default class HeaterCoolerAccessory {
324
324
  this.deviceHandler.changedStates.bind(this, this.accessory, this.historyService, this.accessory.displayName)
325
325
  );
326
326
 
327
- if (!this.refreshHistoryHandlerRegistered) {
327
+ if (this.FakeGatoHistoryService && !this.refreshHistoryHandlerRegistered) {
328
328
  this.deviceHandler.refreshHistoryHandlers.push(() => this.refreshHistory(service));
329
329
  this.refreshHistoryHandlerRegistered = true;
330
330
  }
@@ -65,7 +65,7 @@ export default class HumidityAccessory {
65
65
  this.deviceHandler.changedStates.bind(this, this.accessory, this.historyService, this.accessory.displayName)
66
66
  );
67
67
 
68
- if (!this.refreshHistoryHandlerRegistered) {
68
+ if (this.FakeGatoHistoryService && !this.refreshHistoryHandlerRegistered) {
69
69
  this.deviceHandler.refreshHistoryHandlers.push(() => this.refreshHistory(service));
70
70
  this.refreshHistoryHandlerRegistered = true;
71
71
  }
@@ -56,7 +56,7 @@ export default class MotionAccessory {
56
56
  this.deviceHandler.changedStates.bind(this, this.accessory, this.historyService, this.accessory.displayName)
57
57
  );
58
58
 
59
- if (!this.refreshHistoryHandlerRegistered) {
59
+ if (this.FakeGatoHistoryService && !this.refreshHistoryHandlerRegistered) {
60
60
  this.deviceHandler.refreshHistoryHandlers.push(() => this.refreshHistory(service));
61
61
  this.refreshHistoryHandlerRegistered = true;
62
62
  }
@@ -70,7 +70,7 @@ export default class TemperatureAccessory {
70
70
  this.deviceHandler.changedStates.bind(this, this.accessory, this.historyService, this.accessory.displayName)
71
71
  );
72
72
 
73
- if (!this.refreshHistoryHandlerRegistered) {
73
+ if (this.FakeGatoHistoryService && !this.refreshHistoryHandlerRegistered) {
74
74
  this.deviceHandler.refreshHistoryHandlers.push(() => this.refreshHistory(service));
75
75
  this.refreshHistoryHandlerRegistered = true;
76
76
  }
@@ -254,7 +254,7 @@ export default class ThermostatAccessory {
254
254
  this.deviceHandler.changedStates.bind(this, this.accessory, this.historyService, this.accessory.displayName)
255
255
  );
256
256
 
257
- if (!this.refreshHistoryHandlerRegistered) {
257
+ if (this.FakeGatoHistoryService && !this.refreshHistoryHandlerRegistered) {
258
258
  this.deviceHandler.refreshHistoryHandlers.push(() => this.refreshHistory(service));
259
259
  this.refreshHistoryHandlerRegistered = true;
260
260
  }