diff --git a/custom_components/midea_ac_lan/fan.py b/custom_components/midea_ac_lan/fan.py index 9631bce..041b445 100644 --- a/custom_components/midea_ac_lan/fan.py +++ b/custom_components/midea_ac_lan/fan.py @@ -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."""