mirror of
https://github.com/Andre0512/hon.git
synced 2024-01-19 02:50:19 +00:00
Fix missing value for number entities
This commit is contained in:
parent
e33a609d40
commit
0cd4db0839
|
@ -252,6 +252,10 @@ class HonNumberEntity(HonEntity, NumberEntity):
|
||||||
class HonConfigNumberEntity(HonNumberEntity):
|
class HonConfigNumberEntity(HonNumberEntity):
|
||||||
entity_description: HonConfigNumberEntityDescription
|
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:
|
async def async_set_native_value(self, value: str) -> None:
|
||||||
setting = self._device.settings[self.entity_description.key]
|
setting = self._device.settings[self.entity_description.key]
|
||||||
if isinstance(setting, HonParameterRange):
|
if isinstance(setting, HonParameterRange):
|
||||||
|
|
Loading…
Reference in a new issue