def handle_cmd_unlock_event(self,callback):
# TODO: 202 notification also here if possible
self.callbacks.append(callback)
def could_not_open(self):
logger.critical("StateMachine: Couldn't open door after %d tries. Going back to StateZu." % OPEN_REPEAT_NUMBER)
def handle_cmd_unlock_event(self,callback):
# TODO: 202 notification also here if possible
self.callbacks.append(callback)
def could_not_open(self):
logger.critical("StateMachine: Couldn't open door after %d tries. Going back to StateZu." % OPEN_REPEAT_NUMBER)