self.notify(False)
return StateMachine.StateZu(self.state_machine)
- class AbstractStateWhereOpeningIsRedundant(AbstractUnlockedState):
+ class AbstractStateWhereUnlockingIsRedundant(AbstractUnlockedState):
def handle_cmd_unlock_event(self, callback):
callback("299 redundant: Space seems to be already open. Still processing your request tough.")
logger.info("StateMachine: Received UNLOCK command in %s. This should not be necessary." % self.__class__.__name__)
self.actor().act(Actor.CMD_UNLOCK)
- class StateAboutToOpen(AbstractStateWhereOpeningIsRedundant):
+ class StateAboutToOpen(AbstractStateWhereUnlockingIsRedundant):
def __init__(self, sm):
super().__init__(sm, ABOUTOPEN_NERVLIST)
def handle_pins_event(self):
return StateMachine.StateAuf(self.state_machine)
return super().handle_pins_event()
- class StateAuf(AbstractStateWhereOpeningIsRedundant):
+ class StateAuf(AbstractStateWhereUnlockingIsRedundant):
def __init__(self,sm):
super().__init__(sm)
self.last_buzzed = None