Skip to content

Commit

Permalink
Fix broken support for disabling state icon
Browse files Browse the repository at this point in the history
Should be possible to set `icon: false` to remove the icon but that did
not work
  • Loading branch information
nervetattoo committed May 23, 2019
1 parent bcdb1ea commit 4d30271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class SimpleThermostat extends LitElement {
})
}

if (this.config.icon) {
if (typeof this.config.icon !== 'undefined') {
this.icon = this.config.icon
} else {
this.icon = STATE_ICONS
Expand Down

0 comments on commit 4d30271

Please sign in to comment.