homey-api 3.0.0-rc.4 → 3.0.0-rc.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.
|
@@ -196,9 +196,11 @@ class Device extends Item {
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
static transform(item) {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
if (item.capabilitiesObj) {
|
|
200
|
+
for (const capabilityObj of Object.values(item.capabilitiesObj)) {
|
|
201
|
+
if (capabilityObj.lastUpdated) {
|
|
202
|
+
capabilityObj.lastUpdated = new Date(capabilityObj.lastUpdated);
|
|
203
|
+
}
|
|
202
204
|
}
|
|
203
205
|
}
|
|
204
206
|
|