Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fan.py #453

Merged
merged 2 commits into from
Jan 6, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update custom_components/localtuya/fan.py
Co-authored-by: Bander <46300268+xZetsubou@users.noreply.github.com>
  • Loading branch information
arnpere and xZetsubou authored Jan 5, 2025
commit 0e6c239d04b6316b21a1280ca031c2f463def6a2
4 changes: 2 additions & 2 deletions custom_components/localtuya/fan.py
Original file line number Diff line number Diff line change
@@ -70,8 +70,8 @@ def __init__(
self._direction = None
self._percentage = None
self._speed_range = (
int(self._config.get(CONF_FAN_SPEED_MIN)),
int(self._config.get(CONF_FAN_SPEED_MAX)),
int(self._config.get(CONF_FAN_SPEED_MIN, 1)),
int(self._config.get(CONF_FAN_SPEED_MAX, 9)),
)
self._ordered_list = self._config.get(CONF_FAN_ORDERED_LIST).split(",")

Loading