Fix errors in changing settings
This commit is contained in:
@ -206,10 +206,10 @@ class HonNumberEntity(HonEntity, NumberEntity):
|
||||
isinstance(setting, HonParameter) or isinstance(setting, HonParameterFixed)
|
||||
):
|
||||
setting.value = value
|
||||
if "settings." in self.entity_description:
|
||||
self._device.commands["settings"].send()
|
||||
if "settings." in self.entity_description.key:
|
||||
await self._device.commands["settings"].send()
|
||||
elif self._device.appliance_type in ["AC"]:
|
||||
self._device.commands["startProgram"].send()
|
||||
await self._device.commands["startProgram"].send()
|
||||
await self.coordinator.async_refresh()
|
||||
|
||||
@callback
|
||||
|
||||
Reference in New Issue
Block a user