Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)