X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/67858ed10ece500b2cf68dafb39886a0b873ec4c..525b031d2b8401750293fde4e334dfc8a5193517:/lib/python/Components/Converter/SensorToText.py diff --git a/lib/python/Components/Converter/SensorToText.py b/lib/python/Components/Converter/SensorToText.py index ab87ee2e..fb156faf 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)