homey-api 3.4.11 → 3.4.12
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.
|
@@ -104,7 +104,7 @@ class DeviceCapability extends EventEmitter {
|
|
|
104
104
|
|
|
105
105
|
const nextLastChanged = new Date(transactionTime);
|
|
106
106
|
|
|
107
|
-
if (this.
|
|
107
|
+
if (this.lastChanged != null && nextLastChanged.getTime() === this.lastChanged.getTime()) {
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -116,7 +116,7 @@ class DeviceCapability extends EventEmitter {
|
|
|
116
116
|
|
|
117
117
|
if (capabilityReference) {
|
|
118
118
|
capabilityReference.value = value;
|
|
119
|
-
capabilityReference.lastUpdated = this.
|
|
119
|
+
capabilityReference.lastUpdated = this.lastChanged;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
this.__listener(value, this);
|
|
@@ -173,7 +173,7 @@ class DeviceCapability extends EventEmitter {
|
|
|
173
173
|
const capabilityReference = this.device.capabilitiesObj && this.device.capabilitiesObj[this.id];
|
|
174
174
|
if (capabilityReference) {
|
|
175
175
|
capabilityReference.value = value;
|
|
176
|
-
capabilityReference.lastUpdated = this.
|
|
176
|
+
capabilityReference.lastUpdated = this.lastChanged;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
|