homebridge-denon-tv 3.25.21 → 3.25.22-beta.0

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": "Denon TV",
3
3
  "name": "homebridge-denon-tv",
4
- "version": "3.25.21",
4
+ "version": "3.25.22-beta.0",
5
5
  "description": "Homebridge plugin (https://github.com/homebridge/homebridge) to control Denon/Marantz AV Receivers.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "async-mqtt": "^2.6.3",
32
- "axios": "^1.3.3",
32
+ "axios": "^1.3.4",
33
33
  "xml2js": "^0.4.23"
34
34
  },
35
35
  "keywords": [
package/src/constans.json CHANGED
@@ -243,13 +243,14 @@
243
243
  "Blu-ray": "BD",
244
244
  "CBL/SAT": "SAT/CBL",
245
245
  "NETWORK": "NET",
246
+ "AirPlay": "NET",
247
+ "Online Music": "NET",
246
248
  "Media Player": "MPLAY",
247
249
  "AUX": "AUX1",
248
250
  "Tuner": "TUNER",
249
251
  "FM": "TUNER",
250
- "SpotifyConnect": "Spotify Connect",
251
- "Internet Radio": "IRP",
252
- "Online Music": "NET",
252
+ "SpotifyConnect": "SPOTIFYCONNECT",
253
+ "Internet Radio": "IRADIO",
253
254
  "Media Server": "SERVER",
254
255
  "Spotify": "SPOTIFY",
255
256
  "Flickr": "FLICKR",
package/src/denon.js CHANGED
@@ -119,7 +119,7 @@ class DENON extends EventEmitter {
119
119
  //get receiver status
120
120
  const statusArray = Object.keys(devState);
121
121
  const power = devState.Power[0].value[0] === 'ON';
122
- const input = conversionArrayInputs.includes(devState.InputFuncSelect[0].value[0]) ? CONSTANS.InputConversion[devState.InputFuncSelect[0].value[0]] : (devState.InputFuncSelect[0].value[0]).toUpperCase();
122
+ const input = conversionArrayInputs.includes(devState.InputFuncSelect[0].value[0]) ? CONSTANS.InputConversion[devState.InputFuncSelect[0].value[0]] : (devState.InputFuncSelect[0].value[0]);
123
123
  const volumeControlType = statusArray.includes('VolumeDisplay') ? devState.VolumeDisplay[0].value[0] : this.volumeControlType;
124
124
  const volumeRelative = devState.MasterVolume[0].value[0];
125
125
  const volume = parseFloat(volumeRelative) >= -79.5 ? parseInt(volumeRelative) + 80 : this.volume;