Skip to content

Fix temperature checks without setpoints

Latest
Compare
Choose a tag to compare
@RoboMagus RoboMagus released this 18 Oct 16:01
· 0 commits to master since this release

Fixes error logs (non critical) that may occur when temperatures are received from the printer without setpoints.

Specifically these types of Error logs:


2024-10-18 17:40:47,936 - octoprint.plugins.preheathelper - ERROR - TraceBack: Traceback (most recent call last):
  File "/octoprint/plugins/custom/OctoPrint-PreheatHelper/octoprint_preheathelper/__init__.py", line 189, in on_temperatures_received
    if bed_target >= MINIMAL_SETPOINT_TEMPERATURE:
TypeError: '>=' not supported between instances of 'NoneType' and 'int'

2024-10-18 17:40:49,448 - octoprint.plugins.preheathelper - ERROR - TraceBack: Traceback (most recent call last):
  File "/octoprint/plugins/custom/OctoPrint-PreheatHelper/octoprint_preheathelper/__init__.py", line 194, in on_temperatures_received
    if tool_target >= MINIMAL_SETPOINT_TEMPERATURE:
TypeError: '>=' not supported between instances of 'NoneType' and 'int'