mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +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
fff589eeab
commit
97b9d3bd21
@ -129,6 +129,6 @@ class KNXSensorFloatClass(KNXGroupAddress, KNXSensorBaseClass):
|
|||||||
self._value = None
|
self._value = None
|
||||||
|
|
||||||
if self._data:
|
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:
|
if self._minimum_value <= value <= self._maximum_value:
|
||||||
self._value = value
|
self._value = value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user