From 1fa46d103f55184366d4aeefe3c5be99999a3449 Mon Sep 17 00:00:00 2001 From: Crowbar Z Date: Wed, 13 Nov 2019 23:58:41 +0000 Subject: [PATCH] Fix state_icon_styles option --- button-entity-row.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/button-entity-row.js b/button-entity-row.js index baf0de3..2675b0b 100644 --- a/button-entity-row.js +++ b/button-entity-row.js @@ -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)