verify_heater: Don't raise a heater error if the heater is off

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-06-12 21:52:17 -04:00
parent 64214255da
commit 47901e57c9
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class HeaterCheck:
reactor.update_timer(self.check_timer, reactor.NEVER) reactor.update_timer(self.check_timer, reactor.NEVER)
def check_event(self, eventtime): def check_event(self, eventtime):
temp, target = self.heater.get_temp(eventtime) temp, target = self.heater.get_temp(eventtime)
if temp >= target - self.hysteresis: if temp >= target - self.hysteresis or target <= 0.:
# Temperature near target - reset checks # Temperature near target - reset checks
if self.approaching_target and target: if self.approaching_target and target:
logging.info("Heater %s within range of %.3f", logging.info("Heater %s within range of %.3f",