Procházet zdrojové kódy

heater_on/heater_off for FermenterController copy/paste fix

tags/3.0
Carl Allen GitHub před 8 roky
rodič
revize
657358c254
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +2
    -2
      modules/core/controller.py

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

@@ -116,13 +116,13 @@ class FermenterController(ControllerBase, ActorController, SensorController):
@cbpi.try_catch(None)
def heater_on(self, power=100):
f = self.api.cache.get("fermenter").get(self.fermenter_id)
if k.heater is not None:
if f.heater is not None:
self.actor_on(int(f.heater))

@cbpi.try_catch(None)
def heater_off(self):
f = self.api.cache.get("fermenter").get(self.fermenter_id)
if k.heater is not None:
if f.heater is not None:
self.actor_off(int(f.heater))

@cbpi.try_catch(None)


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