Skip to content

Commit

Permalink
fix: 'ignore_missing_event'->'allow_event_without_transition'
Browse files Browse the repository at this point in the history
  • Loading branch information
fgmacedo committed Nov 2, 2023
1 parent c2b4238 commit d98ebff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/examples/traffic_light_nested_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class red(State.Builder, enter="reset_elapsed"):
def __init__(self, seconds_to_turn_state=5, seconds_running=20):
self.seconds_to_turn_state = seconds_to_turn_state
self.seconds_running = seconds_running
super().__init__(ignore_missing_event=True)
super().__init__(allow_event_without_transition=True)

def on_timer(self, event: str, source: State, target: State):
print(f".. Running {event} from {source.id} to {target.id}")
Expand Down

0 comments on commit d98ebff

Please sign in to comment.