File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -169,17 +169,17 @@ export class iRobotPlatform implements DynamicPlatformPlugin {
169169 break ;
170170 }
171171 }
172- }
173- /*const accessoriesToRemove = this.cachedAccessories.filter(cachedAccessory =>
172+ }
173+ /*const accessoriesToRemove = this.cachedAccessories.filter(cachedAccessory =>
174174 !this.restoredAccessories.find(restoredAccessory => restoredAccessory.UUID === cachedAccessory.UUID));
175175 for (const accessory of accessoriesToRemove) {
176176 this.log.warn('Removing Accessory: ', accessory.displayName);
177177 this.api.unregisterPlatformAccessories(PLUGIN_NAME, PLATFORM_NAME, [accessory]);
178178 }*/
179- // link the accessories to your platform
180- //this.api.registerPlatformAccessories(PLUGIN_NAME, PLATFORM_NAME, [...this.addedAccessories]);
181- this . api . publishExternalAccessories ( PLUGIN_NAME , this . accessories ) ;
182- /*this.log.info(
179+ // link the accessories to your platform
180+ //this.api.registerPlatformAccessories(PLUGIN_NAME, PLATFORM_NAME, [...this.addedAccessories]);
181+ this . api . publishExternalAccessories ( PLUGIN_NAME , this . accessories ) ;
182+ /*this.log.info(
183183 `Restored ${this.restoredAccessories.length} ${this.restoredAccessories.length === 1 ? 'Accessory' : 'Accessories'}`,
184184 );
185185 this.log.info(
@@ -188,5 +188,5 @@ export class iRobotPlatform implements DynamicPlatformPlugin {
188188 this.log.info(
189189 `Removed ${accessoriesToRemove.length} ${accessoriesToRemove.length === 1 ? 'Accessory' : 'Accessories'}`,
190190 );*/
191- }
191+ }
192192}
You can’t perform that action at this time.
0 commit comments