From: Ralf Jung Date: Tue, 15 Oct 2013 08:36:56 +0000 (+0200) Subject: missed a place where I had to rename open -> unlock X-Git-Url: https://git.ralfj.de/saartuer.git/commitdiff_plain/0c9ef9a101c6adfe914f9d039c8ec6698ccf8eb5?ds=sidebyside missed a place where I had to rename open -> unlock --- 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