Release 0.8.6
Release 0.8.6 is a minor release and contains bugfixes and new features:
HierarchicalMachine.add_states
will raise aValueError
when anEnum
name contains the currently usedNestedState.separator
.- Bugfix #486: Reset
NestedState._scope
when enter/exit callbacks raise an exception (thanks @m986883511) - Bugfix #488: Let
HierarchicalMachine._get_trigger
which is bound tomodel.trigger
raise aMachineError
for invalid events andAttributeError
for unknown events (thanks @hsharrison) - Introduced
HierarchicalMachine.has_trigger
to determine whether an event is valid for an HSM - Feature #490:
AsyncMachine
features an event queue dictionary for individual models whenqueued='model'
(thanks @jekel) - Feature #490:
Machine.remove_model
will now also remove model events from the event queue whenqueued=True
- Feature #491:
Machine.get_transitions
and its HSM counterpart now acceptEnum
andState
forsource
anddest
(thanks @thedrow)