mirror of
https://github.com/Andre0512/hon.git
synced 2024-12-22 10:45:30 +00:00
Fix unkown for 0 in number entity
This commit is contained in:
parent
36aed2e6ea
commit
a746584833
|
@ -300,7 +300,7 @@ class HonConfigNumberEntity(HonEntity, NumberEntity):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def native_value(self) -> float | None:
|
def native_value(self) -> float | None:
|
||||||
if value := self._device.settings[self.entity_description.key].value:
|
if (value := self._device.settings[self.entity_description.key].value) != "":
|
||||||
return float(value)
|
return float(value)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue