refactoring
This commit is contained in:
@ -34,10 +34,8 @@ class TimerAdaptor extends AItem {
|
||||
clearTimeout(this.timer);
|
||||
if (this.state == 'OFF') {
|
||||
this.state = 'ON';
|
||||
this.overwrite = true;
|
||||
} else {
|
||||
this.state = 'OFF';
|
||||
this.overwrite = false;
|
||||
}
|
||||
mqtt.send(this.actionStateTopic, this.state, true);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user