Skip to content

Commit

Permalink
Merge pull request #14 from crowbarz/patch-1
Browse files Browse the repository at this point in the history
Fix state_icon_styles option
  • Loading branch information
iantrich authored Jun 5, 2021
2 parents 2855a59 + 1fa46d1 commit fac2318
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 @@ -193,7 +193,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 fac2318

Please sign in to comment.