homey-api 3.18.2 → 3.18.3

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.
@@ -102,9 +102,14 @@ class DeviceCapability extends EventEmitter {
102
102
  return;
103
103
  }
104
104
 
105
- const nextLastChanged = new Date(transactionTime);
106
-
107
- if (this.lastChanged != null && nextLastChanged.getTime() === this.lastChanged.getTime()) {
105
+ const currentLastChanged = this.lastChanged;
106
+ const nextLastChanged = transactionTime == null
107
+ ? null
108
+ : new Date(transactionTime);
109
+
110
+ if (currentLastChanged != null
111
+ && nextLastChanged != null
112
+ && nextLastChanged.getTime() === currentLastChanged.getTime()) {
108
113
  return;
109
114
  }
110
115
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "3.18.2",
3
+ "version": "3.18.3",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "license": "SEE LICENSE",