mirror of
https://github.com/mtan93/homebridge.git
synced 2026-04-10 14:23:08 +01:00
A way to skip cached accessories from being loaded in HAP
This commit is contained in:
@@ -318,13 +318,13 @@ Server.prototype._configCachedPlatformAccessories = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (platformInstance) {
|
if (platformInstance) {
|
||||||
platformInstance.configureAccessory(accessory);
|
if(platformInstance.configureAccessory(accessory)!=false){
|
||||||
|
accessory._prepareAssociatedHAPAccessory();
|
||||||
|
this._bridge.addBridgedAccessory(accessory._associatedHAPAccessory);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log("Failed to find plugin to handle accessory " + accessory.displayName);
|
console.log("Failed to find plugin to handle accessory " + accessory.displayName);
|
||||||
}
|
}
|
||||||
|
|
||||||
accessory._prepareAssociatedHAPAccessory();
|
|
||||||
this._bridge.addBridgedAccessory(accessory._associatedHAPAccessory);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user