From 6f0879572c107469e9719c70c4107f564c8532cd Mon Sep 17 00:00:00 2001 From: yangqian <5144644+yangqian@users.noreply.github.com> Date: Thu, 30 Jan 2025 13:03:27 +0800 Subject: [PATCH] Fix fan speed set typo --- custom_components/xiaomi_miot/fan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/xiaomi_miot/fan.py b/custom_components/xiaomi_miot/fan.py index da4128198..d7c705de1 100644 --- a/custom_components/xiaomi_miot/fan.py +++ b/custom_components/xiaomi_miot/fan.py @@ -180,7 +180,7 @@ async def async_turn_on(self, percentage=None, preset_mode=None, **kwargs): des = percentage_to_ordered_list_item(self._speed_list, percentage) val = self._prop_speed.list_value(des) if val is not None: - await self.device.async_set_property(self._prop_percentage, val) + await self.device.async_set_property(self._prop_speed, val) elif self._speed_range: dat[self._conv_speed.attr] = percentage_to_ranged_value(self._speed_range, percentage) elif self._speed_list: