add possibility to use ValueRange as ValueEqual Converter
[enigma2.git] / lib / python / Components / Converter / ValueRange.py
index 774d021..42e2483 100644 (file)
@@ -8,8 +8,8 @@ class ValueRange(Converter, object):
 
        @cached
        def getBoolean(self):
 
        @cached
        def getBoolean(self):
-               if self.lower < self.upper:
-                       return self.lower < self.source.value < self.upper
+               if self.lower <= self.upper:
+                       return self.lower <= self.source.value <= self.upper
                else:
                        return not (self.upper < self.source.value < self.lower)
 
                else:
                        return not (self.upper < self.source.value < self.lower)