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:
Eric Callahan 2023-02-11 11:21:33 -05:00
parent dbd1b4ac1b
commit bec9a66411
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 1 additions and 1 deletions

View File

@ -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