diff --git a/lib/platformAccessory.js b/lib/platformAccessory.js index 324aa28..a3d8f61 100644 --- a/lib/platformAccessory.js +++ b/lib/platformAccessory.js @@ -131,7 +131,13 @@ PlatformAccessory.prototype._prepareAssociatedHAPAccessory = function () { this._associatedHAPAccessory._sideloadServices(this.services); this._associatedHAPAccessory.reachable = this.reachable; this._associatedHAPAccessory.on('identify', function(paired, callback) { - this.emit('identify', paired, callback); + if (this.listeners('identify').length > 0) { + // allow implementors to identify this Accessory in whatever way is appropriate, and pass along + // the standard callback for completion. + this.emit('identify', paired, callback); + } else { + callback(); + } }.bind(this)); }