- ${supportsBrightness
+ ${!supportsBrightness
? html`
-
-
- `
- : html`
- `}
+ `
+ : nothing}
${supportsColorTemp || supportsColor || supportsBrightness
? html`
-
+
${this.entry &&
lightSupportsFavoriteColors(this.stateObj) &&
(this.editMode || hasFavoriteColors)
@@ -216,6 +281,7 @@ class MoreInfoLight extends LitElement {
.stateObj=${this.stateObj}
.entry=${this.entry}
.editMode=${this.editMode}
+ @favorite-color-edit-started=${this._resetMainControl}
>
`
@@ -291,19 +357,6 @@ class MoreInfoLight extends LitElement {
});
};
- private _showLightColorPickerView = (ev) => {
- showLightColorPickerView(
- this,
- this.hass.localize(
- "ui.dialogs.more_info_control.light.color_picker.title"
- ),
- {
- entityId: this.stateObj!.entity_id,
- defaultMode: ev.currentTarget.mode,
- }
- );
- };
-
private _setWhite = () => {
this.hass.callService("light", "turn_on", {
entity_id: this.stateObj!.entity_id,
@@ -347,9 +400,6 @@ class MoreInfoLight extends LitElement {
flex: none;
border-radius: 15px;
}
- ha-icon-button[disabled] .wheel {
- filter: grayscale(1) opacity(0.5);
- }
.wheel.color {
background-image: url("/static/images/color_wheel.png");
background-size: cover;
@@ -362,6 +412,9 @@ class MoreInfoLight extends LitElement {
rgb(255, 160, 0) 100%
);
}
+ *[disabled] .wheel {
+ filter: grayscale(1) opacity(0.5);
+ }
.buttons {
flex-wrap: wrap;
max-width: 250px;
diff --git a/src/translations/en.json b/src/translations/en.json
index 2b46e38cca..125ac84814 100755
--- a/src/translations/en.json
+++ b/src/translations/en.json
@@ -929,8 +929,8 @@
"light": {
"edit_mode": "Edit favorite colors",
"toggle": "Toggle",
- "change_color": "Change color",
- "change_color_temp": "Change color temperature",
+ "color": "Color",
+ "color_temp": "Temperature",
"set_white": "Set white",
"select_effect": "Select effect",
"brightness": "Brightness",