- use Valuechanged mechanism

This commit is contained in:
jens
2020-11-29 12:37:18 +01:00
parent 135f2b6898
commit d16b6b272a
9 changed files with 1713 additions and 1673 deletions
+3 -9
View File
@@ -1,10 +1,8 @@
import abc
from utils.value import AttributeChange
class APlant:
def __init__(self, params):
pass
class APlant(AttributeChange):
@abc.abstractmethod
def activate(self, enable):
return None
@@ -14,7 +12,7 @@ class APlant:
pass
@abc.abstractmethod
def setPower(self, power_W):
def setPower(self, power):
pass
@abc.abstractmethod
@@ -24,7 +22,3 @@ class APlant:
@abc.abstractmethod
def getTemperature(self):
return None
@abc.abstractmethod
def connect_theta_changed(self, func):
pass