From 0c9ef9a101c6adfe914f9d039c8ec6698ccf8eb5 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 15 Oct 2013 10:36:56 +0200 Subject: [PATCH 1/1] missed a place where I had to rename open -> unlock --- statemachine.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/statemachine.py b/statemachine.py index f2fb817..f6b45dd 100644 --- a/statemachine.py +++ b/statemachine.py @@ -157,13 +157,13 @@ class StateMachine(): 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): @@ -172,7 +172,7 @@ class StateMachine(): 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 -- 2.30.2