Skip to content

Commit

Permalink
Prepare for Homebridge v2
Browse files Browse the repository at this point in the history
  • Loading branch information
vieira committed Sep 1, 2024
1 parent ea471ea commit ee34fbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"engines": {
"node": ">=16.16.0",
"homebridge": ">=1.3.0"
"homebridge": ">=1.3.0 || ^2.0.0-beta.0"
},
"scripts": {
"prepare": "husky install",
Expand Down
2 changes: 1 addition & 1 deletion platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class YeePlatform {

buildDevice(endpoint, { id, model, support, ...props }) {
const deviceId = getDeviceId(id);
const name = getName(`${model}-${deviceId}`, this.config);
const name = getName(`${model} ${deviceId}`, this.config);
const hidden = blacklist(deviceId, this.config);
let accessory = this.devices[id];

Expand Down

0 comments on commit ee34fbc

Please sign in to comment.