From bec9a66411bf96523bdaef8c36a79512ee10214d Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Sat, 11 Feb 2023 11:21:33 -0500 Subject: [PATCH] klippy_connection: fix regression in state reporting Moonraker should only force the state to report as "startup" when Klippy is connected and it hasn't detected a transition to startup. Signed-off-by: Eric Callahan --- moonraker/klippy_connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonraker/klippy_connection.py b/moonraker/klippy_connection.py index 537f76f..79fc2fb 100644 --- a/moonraker/klippy_connection.py +++ b/moonraker/klippy_connection.py @@ -100,7 +100,7 @@ class KlippyConnection: @property def state(self) -> str: - if not self._klippy_started: + if self.is_connected() and not self._klippy_started: return "startup" return self._state