mirror of
https://github.com/Andre0512/hon.git
synced 2025-05-15 07:34:23 -04:00
Instant send settings
This commit is contained in:
parent
17d4d14ead
commit
845adc75c9
3 changed files with 12 additions and 4 deletions
|
@ -206,7 +206,9 @@ class HonNumberEntity(HonEntity, NumberEntity):
|
|||
isinstance(setting, HonParameter) or isinstance(setting, HonParameterFixed)
|
||||
):
|
||||
setting.value = value
|
||||
if self._device.appliance_type in ["AC"]:
|
||||
if "settings." in self.entity_description:
|
||||
self._device.commands["settings"].send()
|
||||
elif self._device.appliance_type in ["AC"]:
|
||||
self._device.commands["startProgram"].send()
|
||||
await self.coordinator.async_refresh()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue