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! );