fix: turn on power_devices associated with screen on startup (#1556)

if the screen was off and KS restarted it would have remained off, this should fix this issue
This commit is contained in:
Alfredo Monclus 2025-02-25 11:22:00 -03:00 committed by GitHub
parent 4eb7a475cb
commit 68fe1b0e0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1159,6 +1159,7 @@ class KlipperScreen(Gtk.Window):
self.ws_subscribe()
self.files.set_gcodes_path()
self.power_devices(None, self._config.get_main_config().get("screen_on_devices", ""), on=True)
logging.info("Printer initialized")
self.initialized = True