1
0
Fork 0
mirror of https://github.com/Andre0512/hon.git synced 2025-05-27 13:14:14 -04:00

Improve fridge support

This commit is contained in:
Andre Basche 2023-05-21 20:51:20 +02:00
parent 833c395c97
commit bf1a6e8fe2
29 changed files with 788 additions and 278 deletions
custom_components/hon

View file

@ -216,7 +216,7 @@ class HonNumberEntity(HonEntity, NumberEntity):
async def async_set_native_value(self, value: float) -> None:
setting = self._device.settings[self.entity_description.key]
if not (
isinstance(setting, HonParameter) or isinstance(setting, HonParameterFixed)
type(setting) == HonParameter or isinstance(setting, HonParameterFixed)
):
setting.value = value
if "settings." in self.entity_description.key: