Skip to content

Commit 8d5af68

Browse files
committed
chore: one more fix
1 parent ca86518 commit 8d5af68

File tree

1 file changed

+1
-1
lines changed
  • custom_components/midea_ac_lan

1 file changed

+1
-1
lines changed

custom_components/midea_ac_lan/fan.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def percentage(self) -> int | None:
117117
"""Midea Fan percentage."""
118118
if not self.fan_speed:
119119
return None
120-
return round(self.fan_speed * self.percentage_step)
120+
return cast("int", round(self.fan_speed * self.percentage_step))
121121

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

0 commit comments

Comments
 (0)