power: removes extra space from command

Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
This commit is contained in:
Pedro Lamas authored and Eric Callahan committed 2025-04-03 05:21:46 -04:00
1 parent b90c96524c
commit 63bcf0b99d
1 file changed
+1 -1
+1 -1
View File
@@ -617,7 +617,7 @@ class KlipperDevice(PowerDevice):
self.timer_handle: Optional[asyncio.TimerHandle] = None
self.object_name = config.get('object_name')
obj_parts = self.object_name.split()
self.gc_cmd = f"SET_PIN PIN={obj_parts[-1]} "
self.gc_cmd = f"SET_PIN PIN={obj_parts[-1]}"
if obj_parts[0] == "gcode_macro":
self.gc_cmd = obj_parts[-1]
elif obj_parts[0] != "output_pin":