Skip to content

Commit

Permalink
chore: one more fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chemelli74 committed Dec 10, 2024
1 parent ca86518 commit 8d5af68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/midea_ac_lan/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def percentage(self) -> int | None:
"""Midea Fan percentage."""
if not self.fan_speed:
return None
return round(self.fan_speed * self.percentage_step)
return cast("int", round(self.fan_speed * self.percentage_step))

def set_percentage(self, percentage: int) -> None:
"""Midea Fan set percentage."""
Expand Down

0 comments on commit 8d5af68

Please sign in to comment.