Skip to content

Commit

Permalink
Fix is scenes are not set
Browse files Browse the repository at this point in the history
  • Loading branch information
DBuit authored Dec 10, 2019
1 parent 35409df commit 5d01f36
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom-light-popup-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,16 @@ class CustomLightPopupCard extends LitElement {
<input type="range" .value="${stateObj.state === "off" ? 0 : Math.round(stateObj.attributes.brightness/2.55)}" @change=${e => this._setBrightness(stateObj, e.target.value)}>
</div>
${scenes && scenes.length > 0 ? html`
<div class="scene-holder">
${scenes.map((scene) => html`
<div class="scene" data-scene="${scene.scene}">
<span class="color" style="background-color: ${scene.color}"></span>
${scene.name ? html`<span class="name">${scene.name}</span>`: html``}
</div>
`)}
</div>
</div>` : html ``}
`;
}

Expand Down

0 comments on commit 5d01f36

Please sign in to comment.