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:
parent
486f659d20
commit
3400094881
|
@ -552,7 +552,7 @@ class KlippyConnection:
|
||||||
return self.writer is not None and not self.closing
|
return self.writer is not None and not self.closing
|
||||||
|
|
||||||
def is_ready(self) -> bool:
|
def is_ready(self) -> bool:
|
||||||
return self.state == "ready"
|
return self._state == "ready"
|
||||||
|
|
||||||
def is_printing(self) -> bool:
|
def is_printing(self) -> bool:
|
||||||
if not self.is_ready():
|
if not self.is_ready():
|
||||||
|
|
Loading…
Reference in New Issue