homebridge-denon-tv 4.2.2-beta.0 → 4.2.2
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 +1 -1
- package/src/denondevice.js +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "Denon TV",
|
|
3
3
|
"name": "homebridge-denon-tv",
|
|
4
|
-
"version": "4.2.2
|
|
4
|
+
"version": "4.2.2",
|
|
5
5
|
"description": "Homebridge plugin (https://github.com/homebridge/homebridge) to control Denon/Marantz AV Receivers.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "grzegorz914",
|
package/src/denondevice.js
CHANGED
|
@@ -708,7 +708,7 @@ class DenonDevice extends EventEmitter {
|
|
|
708
708
|
})
|
|
709
709
|
.onSet(async (value) => {
|
|
710
710
|
try {
|
|
711
|
-
value = (value === 0 || value === 100) ? this.volume : (value < 10 ? `0${value}` :
|
|
711
|
+
value = (value === 0 || value === 100) ? this.volume : (value < 10 ? `0${value}` : value);
|
|
712
712
|
const masterControl = this.masterVolume ? 0 : zoneControl;
|
|
713
713
|
const volume = [`MV${value}`, `Z2${value}`, `Z3${value}`, `MV${value}`][masterControl];
|
|
714
714
|
await this.denon.send(volume);
|