homey-api 3.0.0-rc.16 → 3.0.0-rc.18
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.
|
@@ -5,9 +5,10 @@ const DeviceV3 = require('../../HomeyAPIV3/ManagerDevices/Device');
|
|
|
5
5
|
class Device extends DeviceV3 {
|
|
6
6
|
|
|
7
7
|
static transformGet(item) {
|
|
8
|
+
item.driverId = `${item.driverUri}:${item.driverId}`;
|
|
9
|
+
|
|
8
10
|
item = super.transformGet(item);
|
|
9
11
|
|
|
10
|
-
item.driverId = `${item.driverUri}:${item.driverId}`;
|
|
11
12
|
delete item.driverUri;
|
|
12
13
|
delete item.zoneName;
|
|
13
14
|
return item;
|
|
@@ -198,6 +198,8 @@ class Device extends Item {
|
|
|
198
198
|
static transformGet(item) {
|
|
199
199
|
item = super.transformGet(item);
|
|
200
200
|
|
|
201
|
+
delete item.driverUri;
|
|
202
|
+
|
|
201
203
|
if (item.capabilitiesObj) {
|
|
202
204
|
for (const capabilityObj of Object.values(item.capabilitiesObj)) {
|
|
203
205
|
if (capabilityObj.lastUpdated) {
|