Skip to content

Send XY color requests from the color picker#753

Closed
emlove wants to merge 1 commit intomasterfrom
xy-color-support
Closed

Send XY color requests from the color picker#753
emlove wants to merge 1 commit intomasterfrom
xy-color-support

Conversation

@emlove
Copy link
Copy Markdown
Contributor

@emlove emlove commented Dec 24, 2017

Description

Currently if an entity only supports XY color, it won't get a color picker on the frontend. This PR shows the color picker, and makes XY color the preferred format to send colors to the backend. Because XY doesn't combine brightness with the color, using XY helps prevent unintended brightness changes when making selections on the color picker.

@@ -284,7 +284,8 @@
fireColorSelected(hsv) {
this.hsvColor = hsv;
this.rgbColor = this.HSVtoRGB(this.hsvColor);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Since we don't use this anymore it can be removed?

@emlove
Copy link
Copy Markdown
Contributor Author

emlove commented Jan 22, 2018

Closing this, since we're moving towards using hue/sat for color. I'll create a new PR once home-assistant/core#11288 is merged to make use of the hue/sat API and get rid of the extra conversion here.

@emlove emlove closed this Jan 22, 2018
@emlove emlove deleted the xy-color-support branch January 22, 2018 14:11
@github-actions github-actions bot locked and limited conversation to collaborators Jul 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants