first working version of TempFanControl plugin with Sensors and FanControl component
[vuplus_dvbapp] / lib / python / Components / Converter / SensorToText.py
1 from Components.Converter.Converter import Converter
2
3 class SensorToText(Converter, object):
4         def __init__(self, arguments):
5                 Converter.__init__(self, arguments)
6         
7         def getText(self):
8                 return "%d %s" % (self.source.getValue(), self.source.getUnit())
9         
10         text = property(getText)
11         
12