Ver código fonte

Update controller.py

lines 138 and 144 were changed to f.cooler
tags/3.1_alpha
MikonosII GitHub 8 anos atrás
pai
commit
71449740fa
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      modules/core/controller.py

+ 2
- 2
modules/core/controller.py Ver arquivo

@@ -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)


Carregando…
Cancelar
Salvar