since knx_2_float can't handle 0, bypass converting 0 value from knx to float (#6626)
This commit is contained in:
parent
fff589eeab
commit
97b9d3bd21
1 changed files with 1 additions and 1 deletions
|
@ -129,6 +129,6 @@ class KNXSensorFloatClass(KNXGroupAddress, KNXSensorBaseClass):
|
|||
self._value = None
|
||||
|
||||
if self._data:
|
||||
value = knx2_to_float(self._data)
|
||||
value = 0 if self._data == 0 else knx2_to_float(self._data)
|
||||
if self._minimum_value <= value <= self._maximum_value:
|
||||
self._value = value
|
||||
|
|
Loading…
Add table
Reference in a new issue