Mercurial > templog
comparison py/fridge.py @ 221:720809f6c968
Fridge.is_off() wasn't a method
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 19 Dec 2014 22:34:41 +0800 |
parents | 251524081924 |
children | d9e81a563923 |
comparison
equal
deleted
inserted
replaced
220:251524081924 | 221:720809f6c968 |
---|---|
73 if wort is not None: | 73 if wort is not None: |
74 self.wort_valid_clock = self.server.now() | 74 self.wort_valid_clock = self.server.now() |
75 | 75 |
76 # Safety to avoid bad things happening to the fridge motor (?) | 76 # Safety to avoid bad things happening to the fridge motor (?) |
77 # When it turns off don't start up again for at least FRIDGE_DELAY | 77 # When it turns off don't start up again for at least FRIDGE_DELAY |
78 if self.is_off() and off_time < config.FRIDGE_DELAY: | 78 if not self.is_on() and off_time < config.FRIDGE_DELAY: |
79 L("fridge skipping, too early") | 79 L("fridge skipping, too early") |
80 return | 80 return |
81 | 81 |
82 if params.disabled: | 82 if params.disabled: |
83 if self.is_on(): | 83 if self.is_on(): |