Skip to content

Commit

Permalink
Linted Project
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 2, 2023
1 parent daf6a8a commit 45745e9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,17 +169,17 @@ export class iRobotPlatform implements DynamicPlatformPlugin {
break;
}
}
}
/*const accessoriesToRemove = this.cachedAccessories.filter(cachedAccessory =>
}
/*const accessoriesToRemove = this.cachedAccessories.filter(cachedAccessory =>
!this.restoredAccessories.find(restoredAccessory => restoredAccessory.UUID === cachedAccessory.UUID));
for (const accessory of accessoriesToRemove) {
this.log.warn('Removing Accessory: ', accessory.displayName);
this.api.unregisterPlatformAccessories(PLUGIN_NAME, PLATFORM_NAME, [accessory]);
}*/
// link the accessories to your platform
//this.api.registerPlatformAccessories(PLUGIN_NAME, PLATFORM_NAME, [...this.addedAccessories]);
this.api.publishExternalAccessories(PLUGIN_NAME, this.accessories);
/*this.log.info(
// link the accessories to your platform
//this.api.registerPlatformAccessories(PLUGIN_NAME, PLATFORM_NAME, [...this.addedAccessories]);
this.api.publishExternalAccessories(PLUGIN_NAME, this.accessories);
/*this.log.info(
`Restored ${this.restoredAccessories.length} ${this.restoredAccessories.length === 1 ? 'Accessory' : 'Accessories'}`,
);
this.log.info(
Expand All @@ -188,5 +188,5 @@ export class iRobotPlatform implements DynamicPlatformPlugin {
this.log.info(
`Removed ${accessoriesToRemove.length} ${accessoriesToRemove.length === 1 ? 'Accessory' : 'Accessories'}`,
);*/
}
}
}

0 comments on commit 45745e9

Please sign in to comment.