From aced3ec76813293d7e6960b6a4e89e2c76defbd4 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Wed, 20 Nov 2024 04:06:10 -0500 Subject: [PATCH] allow entering paused state if no entry from disabled --- sunnypilot/mads/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sunnypilot/mads/state.py b/sunnypilot/mads/state.py index 57b919fc9b..ce727108d5 100644 --- a/sunnypilot/mads/state.py +++ b/sunnypilot/mads/state.py @@ -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: