Fixed bug where state wasn't being remembered
This commit is contained in:
parent
3a1428aa47
commit
7ec92f28cb
@ -109,7 +109,7 @@ export class DeviceButton implements IAccessory {
|
|||||||
|
|
||||||
//change state if stateful
|
//change state if stateful
|
||||||
if (this._buttonInfo.IsStateful) {
|
if (this._buttonInfo.IsStateful) {
|
||||||
this._buttonState != this._buttonState
|
this._buttonState = !this._buttonState
|
||||||
} else {
|
} else {
|
||||||
this._switchService.getCharacteristic(Characteristic.On).updateValue(false);
|
this._switchService.getCharacteristic(Characteristic.On).updateValue(false);
|
||||||
return callback(new Error("Normal Response"));
|
return callback(new Error("Normal Response"));
|
||||||
|
Loading…
Reference in New Issue
Block a user