Skip to content

Commit

Permalink
fix(ha): fix ha-icon-button issue
Browse files Browse the repository at this point in the history
ha-icon-button no longer supports icon="" in 2021.11

fix denysdovhan#72
  • Loading branch information
denysdovhan committed Nov 5, 2021
1 parent e0da9cf commit 03b4881
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/purifier-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ class PurifierCard extends LitElement {
title="${name}"
class="${className}"
@click="${execute}"
><ha-icon icon="${icon}"></ha-icon
></ha-icon-button>
`;
}
Expand All @@ -410,7 +411,7 @@ class PurifierCard extends LitElement {
class="${state === 'on' ? 'active' : ''}"
title="${localize('common.toggle_power')}"
@click="${() => this.callService('fan.toggle')}"
>
><ha-icon icon="hass:power"></ha-icon>
</ha-icon-button>
<div class="fill-gap"></div>
Expand Down

0 comments on commit 03b4881

Please sign in to comment.