allow entering paused state if no entry from disabled

This commit is contained in:
Jason Wen
2024-11-20 04:06:10 -05:00
parent b39d998d82
commit aced3ec768
+1 -1
View File
@@ -94,8 +94,8 @@ class StateMachine:
# DISABLED
elif self.state == State.disabled:
if events.contains(ET.ENABLE):
# TODO-SP: Allow entering State.paused if ET.NO_ENTRY
if events.contains(ET.NO_ENTRY):
self.state = State.paused
self.add_current_alert_types(ET.NO_ENTRY)
else: