@nzws/homebridge-mlru1-light
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -92,2 +92,3 @@ "use strict"; | ||
const signalId = this._getSignalId('ico_on'); | ||
let isOutdated = false; | ||
try { | ||
@@ -100,7 +101,12 @@ if (this.natureClient) { | ||
} | ||
this.currentStatus = value; | ||
this.OnCharacteristic.updateValue(this.currentStatus); | ||
isOutdated = value !== this.updatingStatus; | ||
if (!isOutdated) { | ||
this.currentStatus = value; | ||
this.OnCharacteristic.updateValue(this.currentStatus); | ||
} | ||
} | ||
catch (e) { | ||
this.updatingStatus = !value; | ||
if (!isOutdated) { | ||
this.updatingStatus = !value; | ||
} | ||
throw e; | ||
@@ -133,2 +139,3 @@ } | ||
const signalDown = this._getSignalId('ico_arrow_bottom'); | ||
let isOutdated = false; | ||
try { | ||
@@ -145,7 +152,12 @@ if (this.natureClient) { | ||
} | ||
this.currentBrightness = newPercent; | ||
this.BrightnessCharacteristic.updateValue(this.currentBrightness); | ||
isOutdated = newPercent !== this.updatingBrightness; | ||
if (!isOutdated) { | ||
this.currentBrightness = newPercent; | ||
this.BrightnessCharacteristic.updateValue(this.currentBrightness); | ||
} | ||
} | ||
catch (e) { | ||
this.updatingBrightness = prevPercent; | ||
if (!isOutdated) { | ||
this.updatingBrightness = prevPercent; | ||
} | ||
throw e; | ||
@@ -152,0 +164,0 @@ } |
{ | ||
"displayName": "MLRU1 Light with Nature Remo", | ||
"name": "@nzws/homebridge-mlru1-light", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "アイリスオーヤマ製「ML-RU1」リモコンを使用する照明を操作するプラグイン", | ||
@@ -6,0 +6,0 @@ "license": "Apache-2.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18864
182