mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 02:06:42 +00:00
Prevent not needed <hr>
in more-info-light (#9080)
This commit is contained in:
parent
1ff5bf0fd5
commit
344b11a204
@ -126,7 +126,6 @@ class MoreInfoLight extends LitElement {
|
|||||||
@change=${this._ctSliderChanged}
|
@change=${this._ctSliderChanged}
|
||||||
pin
|
pin
|
||||||
></ha-labeled-slider>
|
></ha-labeled-slider>
|
||||||
<hr></hr>
|
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
${supportsColor && (!supportsTemp || this._mode === "color")
|
${supportsColor && (!supportsTemp || this._mode === "color")
|
||||||
@ -148,8 +147,7 @@ class MoreInfoLight extends LitElement {
|
|||||||
></ha-icon-button>
|
></ha-icon-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
${
|
${supportsRgbw || supportsRgbww
|
||||||
supportsRgbw || supportsRgbww
|
|
||||||
? html`<ha-labeled-slider
|
? html`<ha-labeled-slider
|
||||||
.caption=${this.hass.localize(
|
.caption=${this.hass.localize(
|
||||||
"ui.card.light.color_brightness"
|
"ui.card.light.color_brightness"
|
||||||
@ -160,10 +158,8 @@ class MoreInfoLight extends LitElement {
|
|||||||
@change=${this._colorBrightnessSliderChanged}
|
@change=${this._colorBrightnessSliderChanged}
|
||||||
pin
|
pin
|
||||||
></ha-labeled-slider>`
|
></ha-labeled-slider>`
|
||||||
: ""
|
: ""}
|
||||||
}
|
${supportsRgbw
|
||||||
${
|
|
||||||
supportsRgbw
|
|
||||||
? html`
|
? html`
|
||||||
<ha-labeled-slider
|
<ha-labeled-slider
|
||||||
.caption=${this.hass.localize(
|
.caption=${this.hass.localize(
|
||||||
@ -177,10 +173,8 @@ class MoreInfoLight extends LitElement {
|
|||||||
pin
|
pin
|
||||||
></ha-labeled-slider>
|
></ha-labeled-slider>
|
||||||
`
|
`
|
||||||
: ""
|
: ""}
|
||||||
}
|
${supportsRgbww
|
||||||
${
|
|
||||||
supportsRgbww
|
|
||||||
? html`
|
? html`
|
||||||
<ha-labeled-slider
|
<ha-labeled-slider
|
||||||
.caption=${this.hass.localize(
|
.caption=${this.hass.localize(
|
||||||
@ -205,14 +199,13 @@ class MoreInfoLight extends LitElement {
|
|||||||
pin
|
pin
|
||||||
></ha-labeled-slider>
|
></ha-labeled-slider>
|
||||||
`
|
`
|
||||||
: ""
|
: ""}
|
||||||
}
|
|
||||||
<hr></hr>
|
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
${supportsFeature(this.stateObj, SUPPORT_EFFECT) &&
|
${supportsFeature(this.stateObj, SUPPORT_EFFECT) &&
|
||||||
this.stateObj!.attributes.effect_list?.length
|
this.stateObj!.attributes.effect_list?.length
|
||||||
? html`
|
? html`
|
||||||
|
<hr></hr>
|
||||||
<ha-paper-dropdown-menu
|
<ha-paper-dropdown-menu
|
||||||
.label=${this.hass.localize("ui.card.light.effect")}
|
.label=${this.hass.localize("ui.card.light.effect")}
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user