mirror of
https://github.com/Andre0512/hon.git
synced 2025-05-13 06:34:22 -04:00
Add climate entites for fridge #41
This commit is contained in:
parent
a8762367ed
commit
cb660fa9e0
27 changed files with 706 additions and 38 deletions
|
@ -543,7 +543,6 @@ class HonConfigSensorEntity(HonEntity, SensorEntity):
|
|||
value = self._device.settings.get(self.entity_description.key, None)
|
||||
if self.entity_description.state_class is not None:
|
||||
if value and value.value:
|
||||
print(value.value, type(value.value))
|
||||
self._attr_native_value = (
|
||||
float(value.value) if "." in str(value.value) else int(value.value)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue