@@ -221,7 +221,8 @@ def check_state(self):
221221 checktime += 5
222222 if not checkoven :
223223 # hold oven temperature
224- if self .state in ("start" , "preheat" , "soak" ) and self .offtemp > self .sensor .temperature :
224+ if (self .state in ("start" , "preheat" , "soak" ) and
225+ self .offtemp > self .sensor .temperature ):
225226 checkoven = True
226227 self .enable (checkoven )
227228
@@ -378,7 +379,7 @@ def draw_profile(graph, profile):
378379 # draw time line (horizontal)
379380 graph .draw_line (graph .xmin , graph .ymin , graph .xmax , graph .ymin , AXIS_SIZE , 4 , 1 )
380381 graph .draw_line (graph .xmin , graph .ymax - AXIS_SIZE , graph .xmax , graph .ymax
381- - AXIS_SIZE , AXIS_SIZE , 4 , 1 )
382+ - AXIS_SIZE , AXIS_SIZE , 4 , 1 )
382383 # draw time ticks
383384 tick = graph .xmin
384385 while tick < (graph .xmax - graph .xmin ):
@@ -389,7 +390,7 @@ def draw_profile(graph, profile):
389390 # draw temperature line (vertical)
390391 graph .draw_line (graph .xmin , graph .ymin , graph .xmin , graph .ymax , AXIS_SIZE , 4 , 1 )
391392 graph .draw_line (graph .xmax - AXIS_SIZE , graph .ymin , graph .xmax - AXIS_SIZE ,
392- graph .ymax , AXIS_SIZE , 4 , 1 )
393+ graph .ymax , AXIS_SIZE , 4 , 1 )
393394 # draw temperature ticks
394395 tick = graph .ymin
395396 while tick < (graph .ymax - graph .ymin )* 1.1 :
0 commit comments