From 878f825d8046019c4b7ffafb8796fa9dbefe279e Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Thu, 4 Jan 2018 23:08:20 +0100 Subject: [PATCH] refactoring --- src/TimerAdaptor.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/TimerAdaptor.js b/src/TimerAdaptor.js index d755f7a..f230a87 100644 --- a/src/TimerAdaptor.js +++ b/src/TimerAdaptor.js @@ -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;