Skip to content

Commit

Permalink
uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
ACDR committed Sep 1, 2022
1 parent f2d0496 commit 4abe13c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"license": "UNLICENSED",
"displayName": "Yamaha AVR",
"name": "homebridge-yamaha-avr",
"version": "3.0.0-beta.0",
"version": "3.0.0-beta.2",
"description": "homebridge-plugin - Add a Yamaha AVR as a HomeKit Audio Receiver with Power, Input, Volume & Remote Control",
"author": {
"name": "ACDR",
Expand Down Expand Up @@ -41,6 +41,7 @@
"typescript": "4.7.4"
},
"type": "module",
"main": "dist/index.js",
"exports": "./dist/index.js",
"scripts": {
"watch": "npm run build && npm link && nodemon",
Expand Down
2 changes: 1 addition & 1 deletion src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class YamahaAVRPlatform implements IndependentPlatformPlugin {
}

const device: AccessoryContext['device'] = {
uuid: this.api.hap.uuid.generate(`${deviceInfo.system_id}_${this.config.ip}_1`),
uuid: this.api.hap.uuid.generate(`${deviceInfo.system_id}_${this.config.ip}`),
displayName: this.config.name ?? `Yamaha ${deviceInfo.model_name}`,
modelName: deviceInfo.model_name,
systemId: deviceInfo.system_id,
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"moduleResolution": "node",
"noImplicitAny": false
},
"include": ["src/**/*.ts"],
"include": ["src/"],
"exclude": ["node_modules", "**/*.spec.ts"]
}

0 comments on commit 4abe13c

Please sign in to comment.