Add color setting for calendar entities#28882
Conversation
…onents for color selection
|
Drafting until the comment and Core PR are resolved |
|
As mentioned in home-assistant/core#145606, I think that backend changes aren't needed as the color is stored in the entity registry. |
|
I simplified it a bit. |
|
Thank you for your time and for the changes. |
…. color need to be hex strings
…card configuration or the entity registry changes, ensuring events are reloaded appropriately.
|
I've added color to Google Calendar - home-assistant/core@b085d37. It works just fine with this PR. The latest changes simplify things a bit; now the frontend requires a hex string, so the color can be correctly seen in entity options |
|
Backend PR is approved |
|
@MindFreeze thank you for the review. Maybe there is an easy way to simplify this code? |
MindFreeze
left a comment
There was a problem hiding this comment.
I added SubscribeMixin to simplify a bit more. Don't see what more can be done so I'm going to call it good enough. Thanks
Breaking change
Proposed change
Add color setting for calendar entities for home-assistant/core#145606, similar to home-assistant/core#88139
Type of change
Example configuration
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed: