X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FConverter%2FSensorToText.py;h=fb156fafb5679ddd70e55bca1e5edd19a0bcd32d;hp=ab87ee2e849eadadd5674d9533ad0350598155b9;hb=710b3ea19993c9fc15e38a57101494eb962c606c;hpb=67858ed10ece500b2cf68dafb39886a0b873ec4c diff --git a/lib/python/Components/Converter/SensorToText.py b/lib/python/Components/Converter/SensorToText.py index ab87ee2..fb156fa 100644 --- a/lib/python/Components/Converter/SensorToText.py +++ b/lib/python/Components/Converter/SensorToText.py @@ -5,6 +5,8 @@ class SensorToText(Converter, object): Converter.__init__(self, arguments) def getText(self): + if self.source.getValue() is None: + return "" return "%d %s" % (self.source.getValue(), self.source.getUnit()) text = property(getText)