- use Valuechanged mechanism
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user