mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-18 05:10:57 +00:00
Minor Tweak
This commit is contained in:
@@ -140,6 +140,11 @@ PlatformAccessory.prototype.configureCameraSource = function(cameraSource) {
|
||||
|
||||
PlatformAccessory.prototype._prepareAssociatedHAPAccessory = function () {
|
||||
this._associatedHAPAccessory = new Accessory(this.displayName, this.UUID);
|
||||
|
||||
if (this.cameraSource) {
|
||||
this._associatedHAPAccessory.configureCameraSource(this.cameraSource);
|
||||
}
|
||||
|
||||
this._associatedHAPAccessory._sideloadServices(this.services);
|
||||
this._associatedHAPAccessory.category = this.category;
|
||||
this._associatedHAPAccessory.reachable = this.reachable;
|
||||
|
||||
Reference in New Issue
Block a user