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 for HomeKit fan modes (issue #563) #704

Merged

Conversation

diegocjorge
Copy link
Contributor

All credits to @kparmun for the fix:

#563 (comment)

@ollo69
Copy link
Owner

ollo69 commented Feb 20, 2024

It doesn't look really good alter an enum using in some cases lower case and in other upper case. If the problem is that HomeKit just support lower case options, the change should be implemented in the methods fan_speeds, fan_speed and set_fan_speed to convert the values in lower case.

@diegocjorge
Copy link
Contributor Author

Hey @ollo69, hope it's better now. I'm not much of a coder.

Copy link
Owner

@ollo69 ollo69 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please take a look to suggested changes and fix black formatting

diegocjorge and others added 2 commits February 23, 2024 12:17
Co-authored-by: ollo69 <60491700+ollo69@users.noreply.github.com>
Co-authored-by: ollo69 <60491700+ollo69@users.noreply.github.com>
@diegocjorge
Copy link
Contributor Author

I committed the changes you recommended

@ollo69
Copy link
Owner

ollo69 commented Feb 23, 2024

Not sure this is the right solution. Probably fan modes should be mapped with HA modes.
Let me think about this.

@ollo69 ollo69 merged commit 4a3b751 into ollo69:master Feb 24, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants