Skip to content

Commit

Permalink
Fix state_icon_styles option
Browse files Browse the repository at this point in the history
  • Loading branch information
crowbarz authored Nov 13, 2019
1 parent 59de604 commit 1fa46d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion button-entity-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class ButtonEntityRow extends LitElement {
_getCurrentIconStyle(button, entityState) {
const mergedStyle = {
...this._getObjectData(button.iconStyle || {}),
...this._getObjectData((button.stateIconStyles && button.stateStyles[entityState.state]) || {})
...this._getObjectData((button.stateIconStyles && button.stateIconStyles[entityState.state]) || {})
}

return Object.keys(mergedStyle)
Expand Down

0 comments on commit 1fa46d1

Please sign in to comment.