From 2298a55b161bcbb3949083a234a653f1c1b098ca Mon Sep 17 00:00:00 2001 From: Ian Richardson Date: Thu, 27 Feb 2020 02:20:20 -0600 Subject: [PATCH] Fix action handling for buttons row (#5007) --- src/panels/lovelace/components/hui-buttons-base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panels/lovelace/components/hui-buttons-base.ts b/src/panels/lovelace/components/hui-buttons-base.ts index b7c51f1c35..c0890e51b4 100644 --- a/src/panels/lovelace/components/hui-buttons-base.ts +++ b/src/panels/lovelace/components/hui-buttons-base.ts @@ -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! );