Skip to content

Commit

Permalink
fix #143
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorz914 committed Nov 28, 2022
1 parent ba23e4f commit 480614f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### NOTE!!!
## After update to 2.x.x the plugin settings (xboxLiveId) need to be updated.

## [2.3.9] - (28.11.2022)
## Changed
- fix [#143](https://github.com/grzegorz914/homebridge-xbox-tv/issues/143)
- update dependencies

## [2.3.8] - (02.11.2022)
## Changed
- fix error with 2.3.7
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class XBOXDEVICE {
const devInfo = JSON.stringify(obj, null, 2);
const writeDevInfo = await fsPromises.writeFile(this.devInfoFile, devInfo);
const debug = this.enableDebugMode ? this.log(`Device: ${this.host} ${this.name}, debug saved Info: ${devInfo}`) : false;
const mqtt = this.mqttEnabled ? this.mqtt.send('Info', obj) : false;
const mqtt = this.mqttEnabled ? this.mqtt.send('Info', devInfo) : false;
} catch (error) {
this.log.error('Device: %s %s, device info error: %s', this.host, this.name, error);
};
Expand Down Expand Up @@ -283,7 +283,7 @@ class XBOXDEVICE {
this.mute = mute;
this.mediaState = mediaState;
this.inputIdentifier = inputIdentifier;
const mqtt = this.mqttEnabled ? this.mqtt.send('State', obj) : false;
const mqtt = this.mqttEnabled ? this.mqtt.send('State', JSON.stringify(obj, null, 2)) : false;
})
.on('error', (error) => {
this.log.error(`Device: ${this.host} ${this.name}, ${error}`);
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"displayName": "Xbox TV",
"name": "homebridge-xbox-tv",
"version": "2.3.8",
"version": "2.3.9",
"description": "Homebridge plugin (https://github.com/homebridge/homebridge) to control Xbox game consoles.",
"license": "MIT",
"author": "grzegorz914",
Expand Down Expand Up @@ -33,7 +33,7 @@
"async-mqtt": "^2.6.3",
"elliptic": "^6.5.4",
"hex-to-binary": ">=1.0.1",
"jsrsasign": "^10.5.27",
"jsrsasign": "^10.6.1",
"uuid": ">=9.0.0",
"uuid-parse": ">=1.1.0",
"xbox-webapi": "^1.4.1",
Expand Down

0 comments on commit 480614f

Please sign in to comment.