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)