diff options
Diffstat (limited to 'lib/python/Components/Converter/SensorToText.py')
| -rw-r--r-- | lib/python/Components/Converter/SensorToText.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |
