@@ -221,7 +221,8 @@ def check_state(self):
221
221
checktime += 5
222
222
if not checkoven :
223
223
# 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 ):
225
226
checkoven = True
226
227
self .enable (checkoven )
227
228
@@ -378,7 +379,7 @@ def draw_profile(graph, profile):
378
379
# draw time line (horizontal)
379
380
graph .draw_line (graph .xmin , graph .ymin , graph .xmax , graph .ymin , AXIS_SIZE , 4 , 1 )
380
381
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 )
382
383
# draw time ticks
383
384
tick = graph .xmin
384
385
while tick < (graph .xmax - graph .xmin ):
@@ -389,7 +390,7 @@ def draw_profile(graph, profile):
389
390
# draw temperature line (vertical)
390
391
graph .draw_line (graph .xmin , graph .ymin , graph .xmin , graph .ymax , AXIS_SIZE , 4 , 1 )
391
392
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 )
393
394
# draw temperature ticks
394
395
tick = graph .ymin
395
396
while tick < (graph .ymax - graph .ymin )* 1.1 :
0 commit comments