Skip to content

Commit

Permalink
fix publish
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorz914 committed Sep 8, 2024
1 parent 726e2b5 commit 1f65048
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"displayName": "Xbox TV",
"name": "homebridge-xbox-tv",
"version": "3.1.9",
"version": "3.1.10",
"description": "Homebridge plugin to control Xbox game consoles.",
"license": "MIT",
"author": "grzegorz914",
Expand Down
7 changes: 5 additions & 2 deletions src/localApi/xboxlocalapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,11 @@ class XBOXLOCALAPI extends EventEmitter {

//Prepare accessory
await new Promise(resolve => setTimeout(resolve, 7500));
const prepareAccessory = this.startPrepareAccessory && !this.isConnected ? this.emit('prepareAccessory') : false;
this.startPrepareAccessory = false;
//start external integration
const prepareExtInt = !this.isConnected ? this.emit('externalIntegration') : false;

//prepare accessory
const prepareAccessory = !this.isConnected ? this.emit('prepareAccessory') : false;
}).bind();

return true;
Expand Down
2 changes: 1 addition & 1 deletion src/xboxdevice.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ class XboxDevice extends EventEmitter {
this.emit('message', `Media State: ${['PLAY', 'PAUSE', 'STOPPED', 'LOADING', 'INTERRUPTED'][mediaState]}`);
};
})
.on('externalIntegrations', (message) => {
.on('externalIntegrations', () => {
try {
//RESTFul server
const restFulEnabled = this.restFul.enable || false;
Expand Down

0 comments on commit 1f65048

Please sign in to comment.