Skip to content

Commit

Permalink
Update platform.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Jul 25, 2024
1 parent d786ebc commit f4cb464
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ export class ExampleHomebridgePlatform implements DynamicPlatformPlugin {

this.log.debug('Finished initializing platform:', this.config.name);

// Homebridge 1.8.0 introduced a `log.success` method that can be used to log success messages
// For users that are on a version prior to 1.8.0, we need a 'polyfill' for this method
if (!log.success) {
log.success = log.info;
}

// When this event is fired it means Homebridge has restored all cached accessories from disk.
// Dynamic Platform plugins should only register new accessories after this event was fired,
// in order to ensure they weren't added to homebridge already. This event can also be used
Expand Down

0 comments on commit f4cb464

Please sign in to comment.