Fix action handling for buttons row (#5007)

This commit is contained in:
Ian Richardson 2020-02-27 02:20:20 -06:00 committed by Bram Kragten
parent 6d145730a5
commit 2298a55b16

View File

@ -73,7 +73,7 @@ export class HuiButtonsBase extends LitElement {
const config = (ev.currentTarget as any).config as EntitiesCardEntityConfig;
handleAction(
this,
this.hass!,
this._hass!,
{ tap_action: { action: "toggle" }, ...config },
ev.detail.action!
);