Skip to content

Commit

Permalink
Do not remove the HOOBS service from an accessory
Browse files Browse the repository at this point in the history
  • Loading branch information
derek-miller committed Feb 15, 2024
1 parent d935ae9 commit 6400a4c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# homebridge-control4-proxy

[![NPM Version](https://img.shields.io/npm/v/homebridge-control4-proxy.svg)](https://www.npmjs.com/package/homebridge-control4-proxy)

### DISCLAIMER

This software is neither affiliated with nor endorsed by either Control4 or Apple.
5 changes: 3 additions & 2 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,9 @@ export class C4ProxyHomebridgePlatform implements DynamicPlatformPlugin {
accessory.services
.filter(
(service) =>
!['AccessoryInformation', 'ProtocolInformation'].includes(service.constructor.name) &&
!addedServices.some((s) => Object.is(s, service)),
!['AccessoryInformation', 'ProtocolInformation', 'HOOBS'].includes(
service.constructor.name,
) && !addedServices.some((s) => Object.is(s, service)),
)
.forEach((service) => {
this.log.info(
Expand Down

0 comments on commit 6400a4c

Please sign in to comment.