homebridge-xbox-tv 2.13.6 → 2.13.7

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Xbox TV",
3
3
  "name": "homebridge-xbox-tv",
4
- "version": "2.13.6",
4
+ "version": "2.13.7",
5
5
  "description": "Homebridge plugin to control Xbox game consoles.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -29,7 +29,7 @@
29
29
  "homebridge": ">=1.6.0"
30
30
  },
31
31
  "dependencies": {
32
- "@homebridge/plugin-ui-utils": "^1.0.2",
32
+ "@homebridge/plugin-ui-utils": "^1.0.3",
33
33
  "async-mqtt": "^2.6.3",
34
34
  "elliptic": "^6.5.5",
35
35
  "hex-to-binary": "^1.0.1",
package/src/xboxdevice.js CHANGED
@@ -308,7 +308,10 @@ class XboxDevice extends EventEmitter {
308
308
  this.mqttConnected = true;
309
309
  this.emit('message', message);
310
310
  })
311
- .on('changeState', async (data) => {
311
+ .on('subscribed', (message) => {
312
+ this.emit('message', message);
313
+ })
314
+ .on('subscribedMessage', async (data) => {
312
315
  const key = Object.keys(data)[0];
313
316
  const value = Object.values(data)[0];
314
317
  try {