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

Update supported_features and add supported_color_modes to use new colormodes while maintaining backward compatibility. #87

Merged
merged 2 commits into from
Jul 4, 2023

Conversation

L-four
Copy link
Contributor

@L-four L-four commented May 1, 2023

Currently the supported_features function returns a ColorMode enum where HA expects binary flags. This was added here fa42052

I made this pull request after encountering the same issue as @ryanwaldron in issue #81

After reading the docs here: https://developers.home-assistant.io/docs/core/entity/light/

Implementing supported_features as binary flags and adding supported_color_modes to return the corresponding set of ColorMode enums is working for me.

L-four added 2 commits May 1, 2023 18:56
Fix Enum based color modes to use the correct property name and return the expected set.
@jfarmer08 jfarmer08 merged commit 84111f6 into jfarmer08:master Jul 4, 2023
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.

2 participants