mirror of
https://github.com/Andre0512/hon.git
synced 2026-06-19 14:51:18 +02:00
Fix unkown for 0 in number entity
This commit is contained in:
@@ -300,7 +300,7 @@ class HonConfigNumberEntity(HonEntity, NumberEntity):
|
||||
|
||||
@property
|
||||
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 None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user