Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NebzHB authored Jan 28, 2024
1 parent 9ac786a commit 1b7a571
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2971,12 +2971,13 @@ JeedomPlatform.prototype.delAccessory = function(jeedomAccessory,silence=false)
// -- jeedomAccessory : JeedomBridgedAccessory to add
// -- Return : nothing
JeedomPlatform.prototype.addAccessory = function(jeedomAccessory) {
let HBAccessory;
try{
if (!jeedomAccessory) {return;}
let isNewAccessory = false;
const services2Add = jeedomAccessory.services_add;
this.log('debug'," Vérification d'existance de l'accessoire dans le cache Homebridge...");
var HBAccessory = this.existingAccessory(jeedomAccessory.UUID);
HBAccessory = this.existingAccessory(jeedomAccessory.UUID);
if (!HBAccessory) {
this.log('│ Nouvel accessoire (' + jeedomAccessory.name + ')');
isNewAccessory = true;
Expand Down

0 comments on commit 1b7a571

Please sign in to comment.