Fix action handling for buttons row (#5007)

This commit is contained in:
Ian Richardson 2020-02-27 02:20:20 -06:00 committed by GitHub
parent 143d1162b6
commit 93565f0ed9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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