homebridge-denon-tv 4.3.25 → 4.3.26
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 +10 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "Denon TV",
|
|
3
3
|
"name": "homebridge-denon-tv",
|
|
4
|
-
"version": "4.3.
|
|
4
|
+
"version": "4.3.26",
|
|
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
|
@@ -861,6 +861,11 @@ class DenonDevice extends EventEmitter {
|
|
|
861
861
|
return inputName;
|
|
862
862
|
})
|
|
863
863
|
.onSet(async (value) => {
|
|
864
|
+
const valueExist = value === this.savedInputsNames[inputReference];
|
|
865
|
+
if (valueExist) {
|
|
866
|
+
return;
|
|
867
|
+
}
|
|
868
|
+
|
|
864
869
|
try {
|
|
865
870
|
this.savedInputsNames[inputReference] = value;
|
|
866
871
|
const newCustomName = JSON.stringify(this.savedInputsNames, null, 2);
|
|
@@ -879,6 +884,11 @@ class DenonDevice extends EventEmitter {
|
|
|
879
884
|
return targetVisibility;
|
|
880
885
|
})
|
|
881
886
|
.onSet(async (state) => {
|
|
887
|
+
const stateExist = state === this.savedInputsTargetVisibility[inputReference];
|
|
888
|
+
if (stateExist) {
|
|
889
|
+
return;
|
|
890
|
+
};
|
|
891
|
+
|
|
882
892
|
try {
|
|
883
893
|
this.savedInputsTargetVisibility[inputReference] = state;
|
|
884
894
|
const newTargetVisibility = JSON.stringify(this.savedInputsTargetVisibility, null, 2);
|