@@ -217,7 +217,8 @@ def check_state(self):
217
217
checktime += 5
218
218
if not checkoven :
219
219
# hold oven temperature
220
- if self .state in ("start" , "preheat" , "soak" ) and self .offtemp > self .sensor .temperature :
220
+ if (self .state in ("start" , "preheat" , "soak" ) and
221
+ self .offtemp > self .sensor .temperature ):
221
222
checkoven = True
222
223
self .enable (checkoven )
223
224
@@ -374,7 +375,7 @@ def draw_profile(graph, profile):
374
375
# draw time line (horizontal)
375
376
graph .draw_line (graph .xmin , graph .ymin , graph .xmax , graph .ymin , AXIS_SIZE , 4 , 1 )
376
377
graph .draw_line (graph .xmin , graph .ymax - AXIS_SIZE , graph .xmax , graph .ymax
377
- - AXIS_SIZE , AXIS_SIZE , 4 , 1 )
378
+ - AXIS_SIZE , AXIS_SIZE , 4 , 1 )
378
379
# draw time ticks
379
380
tick = graph .xmin
380
381
while tick < (graph .xmax - graph .xmin ):
@@ -385,7 +386,7 @@ def draw_profile(graph, profile):
385
386
# draw temperature line (vertical)
386
387
graph .draw_line (graph .xmin , graph .ymin , graph .xmin , graph .ymax , AXIS_SIZE , 4 , 1 )
387
388
graph .draw_line (graph .xmax - AXIS_SIZE , graph .ymin , graph .xmax - AXIS_SIZE ,
388
- graph .ymax , AXIS_SIZE , 4 , 1 )
389
+ graph .ymax , AXIS_SIZE , 4 , 1 )
389
390
# draw temperature ticks
390
391
tick = graph .ymin
391
392
while tick < (graph .ymax - graph .ymin )* 1.1 :
0 commit comments