Show brigtness slider when light is off (#6935)

Fixes #6928
This commit is contained in:
Bram Kragten 2020-09-11 17:07:46 +02:00 committed by GitHub
parent 23a9b79320
commit 78e64e1f60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,8 +61,6 @@ class MoreInfoLight extends LitElement {
"is-on": this.stateObj.state === "on",
})}"
>
${this.stateObj.state === "on"
? html`
${supportsFeature(this.stateObj!, SUPPORT_BRIGHTNESS)
? html`
<ha-labeled-slider
@ -75,6 +73,8 @@ class MoreInfoLight extends LitElement {
></ha-labeled-slider>
`
: ""}
${this.stateObj.state === "on"
? html`
${supportsFeature(this.stateObj, SUPPORT_COLOR_TEMP)
? html`
<ha-labeled-slider