forked from CreatBot/CreatBotKlipperScreen
printer: tempstore fixup (#1353)
temp from get_stat could be {} if the device is not available
This commit is contained in:
@@ -256,7 +256,7 @@ class BasePanel(ScreenPanel):
|
||||
return
|
||||
for device in self._printer.get_temp_devices():
|
||||
temp = self._printer.get_stat(device, "temperature")
|
||||
if temp is not None and device in self.labels:
|
||||
if temp and device in self.labels:
|
||||
name = ""
|
||||
if not (device.startswith("extruder") or device.startswith("heater_bed")):
|
||||
if self.titlebar_name_type == "full":
|
||||
|
Reference in New Issue
Block a user