Skip to content

Commit

Permalink
fix: auto publish accessory to platform
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin committed Feb 13, 2024
1 parent cf95c0d commit 4dc866a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ export class LGThinQHomebridgePlatform implements DynamicPlatformPlugin {
lgThinQDevice = new accessoryType(this, accessory);

// link the accessory to your platform
// this.api.registerPlatformAccessories(PLUGIN_NAME, PLATFORM_NAME, [accessory]);
this.api.publishExternalAccessories(PLUGIN_NAME, [accessory]);
this.api.registerPlatformAccessories(PLUGIN_NAME, PLATFORM_NAME, [accessory]);

this.accessories.push(accessory);
}

Expand Down

0 comments on commit 4dc866a

Please sign in to comment.