From c5eb6ffc7ab57281eecd60047a4d40abb27f689b Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Thu, 30 Mar 2017 10:30:32 +0200 Subject: [PATCH] gate_state: change next state after init Signed-off-by: Thomas Klaehn --- src/gate/gate_state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gate/gate_state.py b/src/gate/gate_state.py index a07630b..e0aba39 100644 --- a/src/gate/gate_state.py +++ b/src/gate/gate_state.py @@ -89,7 +89,7 @@ class GateState(object): self.__comserver.transmit(MQTT_TOPIC, str(time()) + \ " gate gard initiated") self.__comserver.disconnect() - self.__update_state(STATE_CLOSING) + self.__update_state(STATE_OPENING) def __opened_handler(self, light_avg):