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 <arksine.code@gmail.com>
This commit is contained in:
parent
dbd1b4ac1b
commit
bec9a66411
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue