mirror of
https://github.com/Andre0512/hon.git
synced 2025-05-31 06:48:21 -04:00
Fix missing value for number entities
This commit is contained in:
parent
e33a609d40
commit
0cd4db0839
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue