示例#1
0
 def __init__(self, name, description, units, stype, device, proxy,
              *formatted_params):
     self.basename = name
     self.device = device
     stype = Sensor.parse_type(stype)
     params = Sensor.parse_params(stype, formatted_params)
     Sensor.__init__(self, stype, device.name + '.' + name, description,
                     units, params=params)