mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
since knx_2_float can't handle 0, bypass converting 0 value from knx to float (#6626)
This commit is contained in:
parent
2fd3c186e2
commit
ccf9edf815
@ -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…
x
Reference in New Issue
Block a user