Skip to content

Commit ab2b393

Browse files
committed
fix: support for new ha-state-icon in 2024.02
1 parent 27877b9 commit ab2b393

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/button-card.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,8 @@ class ButtonCard extends LitElement {
11541154
? html`
11551155
<ha-state-icon
11561156
.state=${state}
1157+
.stateObj=${state}
1158+
.hass=${this._hass}
11571159
?data-domain=${domain}
11581160
data-state=${ifDefined(state?.state)}
11591161
style=${styleMap(haIconStyle)}

0 commit comments

Comments
 (0)