From a746584833cef439968f418684dc2ba9a42d3554 Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Sat, 30 Mar 2024 20:23:39 +0100 Subject: [PATCH] Fix unkown for 0 in number entity --- custom_components/hon/number.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/hon/number.py b/custom_components/hon/number.py index 4474850..2464b20 100644 --- a/custom_components/hon/number.py +++ b/custom_components/hon/number.py @@ -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