diff options
| author | thedoc <thedoc@atom.(none)> | 2009-12-10 14:52:36 +0100 |
|---|---|---|
| committer | thedoc <thedoc@atom.(none)> | 2009-12-10 14:52:36 +0100 |
| commit | 710b3ea19993c9fc15e38a57101494eb962c606c (patch) | |
| tree | 93c940ef8e9f9e74890fb5a1f082c82d896c7de6 /lib/python/Components/Converter/SensorToText.py | |
| parent | 67858ed10ece500b2cf68dafb39886a0b873ec4c (diff) | |
| download | enigma2-710b3ea19993c9fc15e38a57101494eb962c606c.tar.gz enigma2-710b3ea19993c9fc15e38a57101494eb962c606c.zip | |
support up to 8 fan/temp sensors
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) |
