Skip to content

Commit

Permalink
chore: noqa
Browse files Browse the repository at this point in the history
  • Loading branch information
chemelli74 committed Dec 17, 2024
1 parent 7681c39 commit 59c07dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 int(round(self.fan_speed * self.percentage_step)) # noqa: RUF046

def set_percentage(self, percentage: int) -> None:
"""Midea Fan set percentage."""
Expand Down
2 changes: 1 addition & 1 deletion custom_components/midea_ac_lan/select.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Select for Midea Lan.""" # noqa: A005
"""Select for Midea Lan."""

from typing import cast

Expand Down

0 comments on commit 59c07dd

Please sign in to comment.