From 0a8315d2d0460a77b8e9c0ff3b4ce138e4f4a593 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Mon, 14 Oct 2013 21:04:05 +0200 Subject: [PATCH] Remove the exception-throwing test... --- statemachine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2