Procházet zdrojové kódy

f.cooler for cooler_off

pull/6/head
Carl Allen před 8 roky
rodič
revize
a2bbcf90ba
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. +2
    -1
      modules/core/controller.py

+ 2
- 1
modules/core/controller.py Zobrazit soubor

@@ -133,8 +133,9 @@ class FermenterController(ControllerBase, ActorController, SensorController):

@cbpi.try_catch(None)
def cooler_off(self):

f = self.api.cache.get("fermenter").get(self.fermenter_id)
if self.cooler is not None:
if f.cooler is not None:
self.actor_off(int(f.cooler))

@cbpi.try_catch(None)


Načítá se…
Zrušit
Uložit