Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnhandledPromiseRejectionWarning: Error: Cannot add a Service with the same UUID and subtype as another Service in this Accessory. #59

Open
011V32 opened this issue Apr 9, 2021 · 0 comments

Comments

@011V32
Copy link

011V32 commented Apr 9, 2021

Hi,

I got the following error:

[SamsungTVControl] Found device TV UE48JU6740 (UE48JU6740), usn: uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
(node:20302) UnhandledPromiseRejectionWarning: Error: Cannot add a Service with the same UUID 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' and subtype 'TV' as another Service in this Accessory.
    at Accessory.addService (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:448:17)
    at PlatformAccessory.addService (/usr/lib/node_modules/homebridge/src/platformAccessory.ts:93:41)
    at SamsungTVHomebridgePlatform.registerTV (/usr/lib/node_modules/homebridge-samsungtv-control/src/platform.ts:638:40)
    at HomebridgeAPI.<anonymous> (/usr/lib/node_modules/homebridge-samsungtv-control/src/platform.ts:69:14)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:20302) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:20302) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Does someone know what to do?
Probably the same like #51
(I did nearly the same)
Thx.

Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant