Update controller.py

lines 138 and 144 were changed to f.cooler
This commit is contained in:
MikonosII
2017-06-24 19:12:25 -07:00
committed by GitHub
parent f0b7c6e640
commit 71449740fa
+2 -2
View File
@@ -135,13 +135,13 @@ class FermenterController(ControllerBase, ActorController, SensorController):
@cbpi.try_catch(None)
def cooler_on(self, power=100):
f = self.api.cache.get("fermenter").get(self.fermenter_id)
if f.heater is not None:
if f.cooler is not None:
self.actor_on(power, int(f.cooler))
@cbpi.try_catch(None)
def cooler_off(self):
f = self.api.cache.get("fermenter").get(self.fermenter_id)
if f.heater is not None:
if f.cooler is not None:
self.actor_off(int(f.cooler))
@cbpi.try_catch(None)