@@ -12,7 +12,9 @@ def __init__(self):
1212 super (AnalogSensor , self ).__init__ ()
1313 self ._beta = None
1414 self ._c = None
15+ self ._high_reading = None
1516 self ._last_reading = None
17+ self ._low_reading = None
1618 self ._name = None
1719 self ._offset_adj = 0.0
1820 self ._port = None
@@ -40,6 +42,15 @@ def c(self) -> Union[float, None]:
4042 def c (self , value ):
4143 self ._c = float (value ) if value is not None else None
4244
45+ @property
46+ def high_reading (self ) -> Union [float , None ]:
47+ """High sensor reading (only linear analog sensors, otherwise null)"""
48+ return self ._high_reading
49+
50+ @high_reading .setter
51+ def high_reading (self , value ):
52+ self ._high_reading = float (value ) if value is not None else None
53+
4354 @property
4455 def last_reading (self ) -> Union [float , None ]:
4556 """Last sensor reading (in C) or null if invalid"""
@@ -48,6 +59,15 @@ def last_reading(self) -> Union[float, None]:
4859 @last_reading .setter
4960 def last_reading (self , value ):
5061 self ._last_reading = float (value ) if value is not None else None
62+
63+ @property
64+ def low_reading (self ) -> Union [float , None ]:
65+ """Low sensor reading (only linear analog sensors, otherwise null)"""
66+ return self ._low_reading
67+
68+ @low_reading .setter
69+ def low_reading (self , value ):
70+ self ._low_reading = float (value ) if value is not None else None
5171
5272 @property
5373 def name (self ) -> Union [str , None ]:
0 commit comments