Release 0.8.3
Release 0.8.3 is a minor release and contains several bugfixes mostly related to HierarchicalStateMachine:
- Feature #473: Assign
is_<model_attribute>_<state_name>instead ofis_<state_name>whenmodel_attribute != "state"to enable multiple versions of such convenience functions. A warning will be raised whenis_<state_name>is used. (thanks @artofhuman) - Similarly, auto transitions (
to_<state_name>) will be assigned asto_<model_attribute>_<state_name>.to_<state_name>will work as before but raise a warning until version 0.9.0. - Bugfix:
allow_substatesdid not consider enum states - Feature: Nested enums can now be passed in a dict as
childrenwithinitialparameter - Bugfix #449: get_triggers/get_transitions did not return nested triggers correctly (thanks @alexandretanem)
- Feature #452: Improve handling of label attributes in custom diagram states and
TransitionGraphSupport(thanks @badiku) - Bugfix #456: Prevent parents from overriding (falsy) results of their children's events (thanks @alexandretanem)
- Bugfix #458: Entering the same state caused key errors when transition was defined on a parent (thanks @matlom)
- Bugfix #459: Do not remove current timeout runner in AsyncTimeout to prevent accidental overrides (thanks @rgov)
- Rewording of
State.enter/exitdebug message emitted when callbacks have been processed. - Bugfix #370: Fix order of
before_state_change/beforeandafter/after_state_changeinAsyncMachine(thanks @tzoiker and @vishes-shell) - Bugfix #470:
Graph.get_graph()did not considerenumstates whenshow_roi=True(thank @termim)