mirror of
https://github.com/Andre0512/hon.git
synced 2024-01-19 02:50:19 +00:00
Fix setting fan mode #84
This commit is contained in:
parent
3ed335d356
commit
0fec369746
|
@ -210,7 +210,7 @@ class HonACClimateEntity(HonEntity, ClimateEntity):
|
||||||
async def async_set_fan_mode(self, fan_mode):
|
async def async_set_fan_mode(self, fan_mode):
|
||||||
mode_number = list(HON_FAN.values()).index(fan_mode)
|
mode_number = list(HON_FAN.values()).index(fan_mode)
|
||||||
mode = list(HON_FAN.keys())[mode_number]
|
mode = list(HON_FAN.keys())[mode_number]
|
||||||
self._device.settings["settings.windSpeed"].value = mode
|
self._device.settings["settings.windSpeed"].value = str(mode)
|
||||||
self._attr_fan_mode = fan_mode
|
self._attr_fan_mode = fan_mode
|
||||||
await self._device.commands["settings"].send()
|
await self._device.commands["settings"].send()
|
||||||
self.async_write_ha_state()
|
self.async_write_ha_state()
|
||||||
|
|
Loading…
Reference in a new issue