aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/heaters.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/extras/heaters.py')
-rw-r--r--klippy/extras/heaters.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/klippy/extras/heaters.py b/klippy/extras/heaters.py
index 840bbfd5..b9878e2a 100644
--- a/klippy/extras/heaters.py
+++ b/klippy/extras/heaters.py
@@ -332,7 +332,10 @@ class PrinterHeaters:
min_temp = gcmd.get_float('MINIMUM')
if self.printer.get_start_args().get('debugoutput') is not None:
return
- sensor = self.printer.lookup_object(sensor_name)
+ if sensor_name in self.heaters:
+ sensor = self.heaters[sensor_name]
+ else:
+ sensor = self.printer.lookup_object(sensor_name)
toolhead = self.printer.lookup_object("toolhead")
reactor = self.printer.get_reactor()
eventtime = reactor.monotonic()