Skip to content

Commit

Permalink
fix: ha-button-icon issue (#278)
Browse files Browse the repository at this point in the history
#fix ha-button-icon issue
  • Loading branch information
blacksheepinc authored Nov 5, 2021
1 parent b2c1e44 commit 32dd911
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/vacuum-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,35 +388,31 @@ class VacuumCard extends LitElement {
this.hass.callService(domain, name, service_data);
};
return html`<ha-icon-button
icon="${icon}"
title="${name}"
@click="${execute}"
></ha-icon-button>`;
><ha-icon icon="${icon}"></ha-icon></ha-icon-button>`;
});

const dockButton = html`
<ha-icon-button
icon="hass:home-map-marker"
title="${localize('common.return_to_base')}"
@click="${() => this.callService('return_to_base')}"
>
><ha-icon icon="hass:home-map-marker"></ha-icon>
</ha-icon-button>
`;

return html`
<div class="toolbar">
<ha-icon-button
icon="hass:play"
title="${localize('common.start')}"
@click="${() => this.callService('start')}"
>
><ha-icon icon="hass:play"></ha-icon>
</ha-icon-button>
<ha-icon-button
icon="mdi:map-marker"
title="${localize('common.locate')}"
@click="${() => this.callService('locate', false)}"
>
><ha-icon icon="mdi:map-marker"></ha-icon>
</ha-icon-button>
${state === 'idle' ? dockButton : ''}
Expand Down

0 comments on commit 32dd911

Please sign in to comment.