예제 #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)