Remove the exception-throwing test...
authorRalf Jung <post@ralfj.de>
Mon, 14 Oct 2013 19:04:05 +0000 (21:04 +0200)
committerRalf Jung <post@ralfj.de>
Mon, 14 Oct 2013 19:04:05 +0000 (21:04 +0200)
statemachine.py

index 07d6574ff7dd601396669640f8a9dd62eed07543..893287a53237351f7c290d8b3c07b1adb36f6e7c 100644 (file)
@@ -102,7 +102,7 @@ class StateMachine():
                def handle_pins_event(self):
                        super().handle_pins_event()
                        pins = self.pins()
                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)
                                return None # wait till we have all sensors non-None
                        if pins.door_locked:
                                return StateMachine.StateZu(self.state_machine)