Fix setting fan mode #84

This commit is contained in:
Andre Basche 2023-07-01 15:10:52 +02:00
parent 3ed335d356
commit 0fec369746
1 changed files with 1 additions and 1 deletions

View File

@ -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()