- added AttributeChange
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
import abc
|
||||
import logging
|
||||
from utils.value import AttributeChange, ValueChanged
|
||||
|
||||
|
||||
class ATemperatureSensor:
|
||||
class ATemperatureSensor(AttributeChange):
|
||||
def __init__(self):
|
||||
AttributeChange.__init__(self)
|
||||
|
||||
def log(self, s):
|
||||
d = {'user': "TemperatureSensor" + "::" + self.name()}
|
||||
logging.info ("{}".format(s), extra=d)
|
||||
@@ -18,7 +22,3 @@ class ATemperatureSensor:
|
||||
@abc.abstractmethod
|
||||
def process(self):
|
||||
pass
|
||||
|
||||
@abc.abstractmethod
|
||||
def set_on_changed(self, on_changed):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user