Skip to content

Commit

Permalink
0.2.0b0
Browse files Browse the repository at this point in the history
lovelace GUI config fix
  • Loading branch information
Gluwc committed Apr 10, 2019
1 parent 4ffa5b5 commit 428af67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bar-card.js
Expand Up @@ -583,7 +583,7 @@ class BarCard extends HTMLElement {
sections.forEach(section => {
if (numberValue <= section.value && !color) {
const keys = Object.keys(section)
if (keys[1] == 'color') color = section.color
if (keys[0] == 'color' || keys[1] == 'color') color = section.color
else color = 'hsl(' + section.hue + ',50%,50%)'
}
})
Expand Down Expand Up @@ -1031,4 +1031,4 @@ class BarCard extends HTMLElement {
}
}

customElements.define('bar-card', BarCard)
customElements.define('bar-card', BarCard)

0 comments on commit 428af67

Please sign in to comment.