def handle_pins_event(self):
if not self.pins().door_closed:
return StateLeaving(self.state_machine)
if self.pins().door_locked:
return StateZu(self.state_machine)
def handle_pins_event(self):
if not self.pins().door_closed:
return StateLeaving(self.state_machine)
if self.pins().door_locked:
return StateZu(self.state_machine)