Skip to content

Commit 304ee45

Browse files
committed
Update dependencies.
1 parent f93829d commit 304ee45

7 files changed

+1598
-1368
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.eslintrc.js

.github/workflows/nodeapplication.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
node_version: [8, 10, 12]
16+
node_version: [
17+
10,
18+
12,
19+
14,
20+
]
1721
steps:
18-
- uses: actions/checkout@v1
22+
- uses: actions/checkout@v2
1923
- uses: actions/setup-node@v1
2024
with:
2125
node-version: ${{ matrix.node_version }}

index.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ function isZWavePort(port) {
2525
*
2626
* Since `i` comes before `w` when the devices are listed, it's common for the
2727
* Zigbee radio to be returned as the ZWave radio. We need to scrutinize the
28-
* comName of the radio to ensure that we're returning the actual ZWave one.
28+
* path of the radio to ensure that we're returning the actual ZWave one.
2929
*/
3030
const isHUSBZB1 = port.vendorId == '10c4' && port.productId == '8a2a';
3131
if (isHUSBZB1) {
32-
const isGoControl = port.comName.indexOf('GoControl') >= 0;
32+
const isGoControl = port.path.indexOf('GoControl') >= 0;
3333
if (isGoControl) {
34-
return port.comName.indexOf('zwave') >= 0;
34+
return port.path.indexOf('zwave') >= 0;
3535
}
3636

3737
/**
@@ -70,8 +70,8 @@ function findZWavePort(callback) {
7070
// /dev/cu.usbXXX. tty.usbXXX requires DCD to be asserted which
7171
// isn't necessarily the case for ZWave dongles. The cu.usbXXX
7272
// doesn't care about DCD.
73-
if (port.comName.startsWith('/dev/tty.usb')) {
74-
port.comName = port.comName.replace('/dev/tty', '/dev/cu');
73+
if (port.path.startsWith('/dev/tty.usb')) {
74+
port.path = port.path.replace('/dev/tty', '/dev/cu');
7575
}
7676

7777
if (isZWavePort(port)) {
@@ -127,7 +127,7 @@ async function loadZWaveAdapters(addonManager, _, errorCallback) {
127127
return;
128128
}
129129

130-
console.log('Found ZWave port @', port.comName);
130+
console.log('Found ZWave port @', port.path);
131131

132132
new ZWaveAdapter(addonManager, config, zwaveModule, port);
133133

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@
3535
}
3636
},
3737
"short_name": "Z-Wave",
38-
"version": "0.10.5"
38+
"version": "0.10.6"
3939
}

0 commit comments

Comments
 (0)