Skip to content

Commit

Permalink
add rgb supported_color_modes
Browse files Browse the repository at this point in the history
  • Loading branch information
ljmerza committed Jul 12, 2021
1 parent 7f9e64a commit 07936b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/light-entity-card.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ class LightEntityCard extends LitElement {
stateObj.attributes.supported_color_modes && stateObj.attributes.supported_color_modes.includes('hs');
if (!featureSupported)
featureSupported =
stateObj.attributes.supported_color_modes && stateObj.attributes.supported_color_modes.includes('hs');
stateObj.attributes.supported_color_modes && stateObj.attributes.supported_color_modes.includes('rgb');
break;
case 'whiteValue':
featureSupported = Object.prototype.hasOwnProperty.call(stateObj.attributes, 'white_value');
Expand Down

0 comments on commit 07936b1

Please sign in to comment.