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:
parent
64214255da
commit
47901e57c9
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue