homebridge-xbox-tv 3.3.0 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -3
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -101,7 +101,7 @@ class XboxPlatform {
|
|
|
101
101
|
const emitLog = !enableDebugMode ? false : log.info(`Device: ${host} ${deviceName}, debug: ${debug}.`);
|
|
102
102
|
})
|
|
103
103
|
.on('warn', (warn) => {
|
|
104
|
-
const
|
|
104
|
+
const emitLog = disableLogWarn ? false : log.warn(`Device: ${host} ${deviceName}, ${warn}.`);
|
|
105
105
|
})
|
|
106
106
|
.on('error', (error) => {
|
|
107
107
|
const emitLog = disableLogError ? false : log.error(`Device: ${host} ${deviceName}, ${error}.`);
|
|
@@ -112,7 +112,7 @@ class XboxPlatform {
|
|
|
112
112
|
impulseGenerator.on('start', async () => {
|
|
113
113
|
try {
|
|
114
114
|
const startDone = await xboxDevice.start();
|
|
115
|
-
const stopImpulseGenerator = startDone ? impulseGenerator.stop() : false;
|
|
115
|
+
const stopImpulseGenerator = startDone ? await impulseGenerator.stop() : false;
|
|
116
116
|
} catch (error) {
|
|
117
117
|
const emitLog = disableLogError ? false : log.error(`Device: ${host} ${deviceName}, ${error}, trying again.`);
|
|
118
118
|
};
|
|
@@ -121,7 +121,7 @@ class XboxPlatform {
|
|
|
121
121
|
});
|
|
122
122
|
|
|
123
123
|
//start impulse generator
|
|
124
|
-
impulseGenerator.start([{ name: 'start', sampling: 45000 }]);
|
|
124
|
+
await impulseGenerator.start([{ name: 'start', sampling: 45000 }]);
|
|
125
125
|
} catch (error) {
|
|
126
126
|
throw new Error(`Device: ${host} ${deviceName}, Did finish launching error: ${error}.`);
|
|
127
127
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "Xbox TV",
|
|
3
3
|
"name": "homebridge-xbox-tv",
|
|
4
|
-
"version": "3.3.
|
|
4
|
+
"version": "3.3.1",
|
|
5
5
|
"description": "Homebridge plugin to control Xbox game consoles.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"node": "^18.20.4 || ^20.15.1 || ^22.7.0 || ^23.2.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@homebridge/plugin-ui-utils": "^2.0.
|
|
38
|
+
"@homebridge/plugin-ui-utils": "^2.0.1",
|
|
39
39
|
"async-mqtt": "^2.6.3",
|
|
40
40
|
"elliptic": "^6.6.1",
|
|
41
41
|
"hex-to-binary": "^1.0.1",
|