From: Ralf Jung Date: Mon, 14 Oct 2013 19:04:05 +0000 (+0200) Subject: Remove the exception-throwing test... X-Git-Url: https://git.ralfj.de/saartuer.git/commitdiff_plain/0a8315d2d0460a77b8e9c0ff3b4ce138e4f4a593?hp=-c Remove the exception-throwing test... --- 0a8315d2d0460a77b8e9c0ff3b4ce138e4f4a593 diff --git a/statemachine.py b/statemachine.py index 07d6574..893287a 100644 --- a/statemachine.py +++ b/statemachine.py @@ -102,7 +102,7 @@ class StateMachine(): def handle_pins_event(self): super().handle_pins_event() pins = self.pins() - if pins.door_locked is None or pins.door_closed is None or pins.space_dactive is None or pins.bell_ringing is None: + if pins.door_locked is None or pins.door_closed is None or pins.space_active is None or pins.bell_ringing is None: return None # wait till we have all sensors non-None if pins.door_locked: return StateMachine.StateZu(self.state_machine)