mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-12-23 03:51:55 +00:00
Fix FSMBase default accepted_state
This commit is contained in:
parent
446d453947
commit
e1e0acb3b8
@ -22,7 +22,7 @@ class FSMBase(Machine, CallbackMixin):
|
||||
states, transitions = [], []
|
||||
|
||||
def __init__(self, initial=None, accepted_states=None):
|
||||
self.accepted_states = accepted_states or [self.states[-1]]
|
||||
self.accepted_states = accepted_states or [self.states[-1].name]
|
||||
self.trigger_predicates = defaultdict(list)
|
||||
self.trigger_history = []
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user