From 0cd4db083979c5442a9c4350f328397d9f88f4c9 Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Fri, 30 Jun 2023 20:09:55 +0200 Subject: [PATCH] Fix missing value for number entities --- custom_components/hon/number.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom_components/hon/number.py b/custom_components/hon/number.py index 60081e9..ba148e9 100644 --- a/custom_components/hon/number.py +++ b/custom_components/hon/number.py @@ -252,6 +252,10 @@ class HonNumberEntity(HonEntity, NumberEntity): class HonConfigNumberEntity(HonNumberEntity): entity_description: HonConfigNumberEntityDescription + @property + def native_value(self) -> float | None: + return self._device.settings[self.entity_description.key].value + async def async_set_native_value(self, value: str) -> None: setting = self._device.settings[self.entity_description.key] if isinstance(setting, HonParameterRange):