homey-api 3.0.0-rc.15 → 3.0.0-rc.17

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.
@@ -424,7 +424,7 @@ class Manager extends EventEmitter {
424
424
  });
425
425
  this.__cache[itemId][data.id] = item;
426
426
 
427
- break;
427
+ return this.emit(event, item);
428
428
  }
429
429
  case 'update': {
430
430
  data = Item.transformGet(data);
@@ -432,6 +432,7 @@ class Manager extends EventEmitter {
432
432
  if (this.__cache[itemId][data.id]) {
433
433
  const item = this.__cache[itemId][data.id];
434
434
  item.__update(data);
435
+ return this.emit(event, item);
435
436
  }
436
437
 
437
438
  break;
@@ -443,6 +444,9 @@ class Manager extends EventEmitter {
443
444
  const item = this.__cache[itemId][data.id];
444
445
  item.__delete();
445
446
  delete this.__cache[itemId][item.id];
447
+ return this.emit(event, {
448
+ id: item.id,
449
+ });
446
450
  }
447
451
 
448
452
  break;
@@ -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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "3.0.0-rc.15",
3
+ "version": "3.0.0-rc.17",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "files": [