From 710b3ea19993c9fc15e38a57101494eb962c606c Mon Sep 17 00:00:00 2001 From: thedoc Date: Thu, 10 Dec 2009 14:52:36 +0100 Subject: support up to 8 fan/temp sensors --- lib/python/Components/Converter/SensorToText.py | 2 ++ 1 file changed, 2 insertions(+) (limited to '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) -- cgit v1.2.3