Skip to content

Commit

Permalink
fix(dingz): make sure we don't schlepp along the reachability service
Browse files Browse the repository at this point in the history
  • Loading branch information
johannrichard committed Nov 21, 2020
1 parent c6207c8 commit fddbfad
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dingzAccessory.ts
Expand Up @@ -128,6 +128,14 @@ export class DingzDaAccessory extends EventEmitter {
}
});

// Remove Reachability service if still present
const bridgingService: Service | undefined = this.accessory.getService(
this.platform.Service.BridgingState,
);
if (bridgingService) {
this.accessory.removeService(bridgingService);
}

/****
* How to discover Accessories:
* - Check for UDP Packets and/or use manually configured accessories
Expand Down

0 comments on commit fddbfad

Please sign in to comment.