Browse Source

add try_catch for cooler methods in fermentercontroller

pull/6/head
Carl Allen 8 years ago
parent
commit
77a0102e2d
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      modules/core/controller.py

+ 2
- 0
modules/core/controller.py View File

@@ -125,11 +125,13 @@ class FermenterController(ControllerBase, ActorController, SensorController):
if f.heater is not None:
self.actor_off(int(f.heater))

@cbpi.try_catch(None)
def cooler_on(self):
f = self.api.cache.get("fermenter").get(self.fermenter_id)
if f.cooler is not None:
self.actor_on(id=int(f.cooler))

@cbpi.try_catch(None)
def cooler_off(self):
f = self.api.cache.get("fermenter").get(self.fermenter_id)
if self.cooler is not None:


Loading…
Cancel
Save