homebridge-xbox-tv 3.3.4-beta.2 → 3.3.4
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/webApi/xboxwebapi.js +1 -1
- package/src/xboxdevice.js +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
10
10
|
- After update to 2.x.x the plugin settings (xboxLiveId) need to be updated
|
|
11
11
|
- After update to v3.0.0 RESTFull and MQTT config settings need to be updated
|
|
12
12
|
|
|
13
|
+
## [3.3.4] - (05.02.2025)
|
|
14
|
+
|
|
15
|
+
## Changes
|
|
16
|
+
|
|
17
|
+
- Web Api improvements of authoriztion check and remote management
|
|
18
|
+
- cleanup
|
|
19
|
+
|
|
13
20
|
## [3.3.3] - (04.02.2025)
|
|
14
21
|
|
|
15
22
|
## Changes
|
package/package.json
CHANGED
package/src/webApi/xboxwebapi.js
CHANGED
|
@@ -70,7 +70,7 @@ class XboxWebApi extends EventEmitter {
|
|
|
70
70
|
});
|
|
71
71
|
|
|
72
72
|
const rmEnabled = await this.consoleStatus();
|
|
73
|
-
const debug1 = rmEnabled ? false : this.emit('
|
|
73
|
+
const debug1 = rmEnabled ? false : this.emit('warn', `Remote management not enabled, please check your console settings`);
|
|
74
74
|
this.rmEnabled = rmEnabled;
|
|
75
75
|
|
|
76
76
|
//await this.consolesList();
|
package/src/xboxdevice.js
CHANGED
|
@@ -973,7 +973,7 @@ class XboxDevice extends EventEmitter {
|
|
|
973
973
|
}
|
|
974
974
|
|
|
975
975
|
//sort inputs list
|
|
976
|
-
|
|
976
|
+
await this.displayOrder();
|
|
977
977
|
|
|
978
978
|
return accessory;
|
|
979
979
|
} catch (error) {
|
|
@@ -1043,7 +1043,7 @@ class XboxDevice extends EventEmitter {
|
|
|
1043
1043
|
const timers = [{ name: 'checkAuthorization', sampling: 900000 }];
|
|
1044
1044
|
const startImpulseGenerator = checkAuthorization ? await this.xboxWebApi.impulseGenerator.start(timers) : false;
|
|
1045
1045
|
} catch (error) {
|
|
1046
|
-
this.emit('error', error);
|
|
1046
|
+
this.emit('error', `Start web api error: ${error}`);
|
|
1047
1047
|
};
|
|
1048
1048
|
};
|
|
1049
1049
|
|
|
@@ -1166,11 +1166,11 @@ class XboxDevice extends EventEmitter {
|
|
|
1166
1166
|
this.emit('info', `Media State: ${['PLAY', 'PAUSE', 'STOPPED', 'LOADING', 'INTERRUPTED'][mediaState]}`);
|
|
1167
1167
|
};
|
|
1168
1168
|
})
|
|
1169
|
-
.on('success', (
|
|
1170
|
-
this.emit('success',
|
|
1169
|
+
.on('success', (success) => {
|
|
1170
|
+
this.emit('success', success);
|
|
1171
1171
|
})
|
|
1172
|
-
.on('info', (
|
|
1173
|
-
this.emit('info',
|
|
1172
|
+
.on('info', (info) => {
|
|
1173
|
+
this.emit('info', info);
|
|
1174
1174
|
})
|
|
1175
1175
|
.on('debug', (debug) => {
|
|
1176
1176
|
this.emit('debug', debug);
|
|
@@ -1181,8 +1181,8 @@ class XboxDevice extends EventEmitter {
|
|
|
1181
1181
|
.on('error', (error) => {
|
|
1182
1182
|
this.emit('error', error);
|
|
1183
1183
|
})
|
|
1184
|
-
.on('disconnected', (
|
|
1185
|
-
this.emit('info',
|
|
1184
|
+
.on('disconnected', (info) => {
|
|
1185
|
+
this.emit('info', info);
|
|
1186
1186
|
})
|
|
1187
1187
|
.on('restFul', (path, data) => {
|
|
1188
1188
|
const restFul = this.restFulConnected ? this.restFul1.update(path, data) : false;
|