示例#1
0
文件: __init__.py 项目: ehoefig/stout
 def location(self, value):
     logger.debug("Changing sensor {} location from {} to {}".format(self.address, self.location, value))
     self._location = value
     dispatcher.send(signal=SENSOR_METADATA_CHANGED, sender=__name__, sensor=self, location=self.location)
示例#2
0
文件: __init__.py 项目: ehoefig/stout
 def kind(self, value):
     logger.debug("Changing sensor {} kind from {} to {}".format(self.address, self.kind, value))
     self._kind = value
     dispatcher.send(signal=SENSOR_METADATA_CHANGED, sender=__name__, sensor=self, kind=self.kind)