homebridge-xbox-tv 3.9.3 → 3.9.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Xbox TV",
3
3
  "name": "homebridge-xbox-tv",
4
- "version": "3.9.3",
4
+ "version": "3.9.4",
5
5
  "description": "Homebridge plugin to control Xbox game consoles.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -41,7 +41,7 @@
41
41
  "hex-to-binary": "^1.0.1",
42
42
  "jsrsasign": "^11.1.0",
43
43
  "uuid": "^13.0.0",
44
- "ping": "^0.4.4",
44
+ "ping": "^1.0.0",
45
45
  "express": "^5.1.0",
46
46
  "axios": "^1.12.2"
47
47
  },
@@ -49,6 +49,7 @@ class XboxLocalApi extends EventEmitter {
49
49
  const state = await Ping.promise.probe(this.host, { timeout: 3 });
50
50
  if (!state.alive) {
51
51
  if (this.socket) this.socket.close();
52
+ await this.updateState();
52
53
  return;
53
54
  }
54
55
 
@@ -202,7 +203,6 @@ class XboxLocalApi extends EventEmitter {
202
203
  switch (messageRequest) {
203
204
  case 'discoveryRequest':
204
205
  case 'discoveryResponse':
205
- case 'powerOn':
206
206
  case 'connectRequest':
207
207
  case 'connectResponse':
208
208
  packetStructure = new SimplePacket(messageRequest);