Skip to content

Commit

Permalink
🌀 fix for fan speed (#2338)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangqian authored Feb 7, 2025
1 parent cde14be commit 2158b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_miot/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2158b6a

Please sign in to comment.