klippy_connection: minor change to is_ready() method

Use attribute to check the condition rather than the property.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2023-01-09 07:11:33 -05:00
parent 486f659d20
commit 3400094881
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 1 additions and 1 deletions

View File

@ -552,7 +552,7 @@ class KlippyConnection:
return self.writer is not None and not self.closing
def is_ready(self) -> bool:
return self.state == "ready"
return self._state == "ready"
def is_printing(self) -> bool:
if not self.is_ready():