klippy_connection: fix bug during initialization

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-05-13 05:23:06 -04:00
parent babfba1686
commit 0164bb239e
No known key found for this signature in database
GPG Key ID: 7027245FBBDDF59A
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ class KlippyConnection:
self.init_list.append("gcode_output_sub")
if "startup_complete" not in self.init_list:
await self._check_ready()
if len(self.init_list) == 4:
if len(self.init_list) == 5:
logging.debug("Klippy Connection Initialized")
return True
elif not self.is_connected():