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)
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)