gate_state: change next state after init

Signed-off-by: Thomas Klaehn <thomas.klaehn@u-blox.com>
This commit is contained in:
Thomas Klaehn 2017-03-30 10:30:32 +02:00
parent e66e731c67
commit c5eb6ffc7a

View File

@ -89,7 +89,7 @@ class GateState(object):
self.__comserver.transmit(MQTT_TOPIC, str(time()) + \ self.__comserver.transmit(MQTT_TOPIC, str(time()) + \
" gate gard initiated") " gate gard initiated")
self.__comserver.disconnect() self.__comserver.disconnect()
self.__update_state(STATE_CLOSING) self.__update_state(STATE_OPENING)
def __opened_handler(self, light_avg): def __opened_handler(self, light_avg):