diff --git a/src/common.ts b/src/common.ts index 01eb1b76..f12c463c 100644 --- a/src/common.ts +++ b/src/common.ts @@ -514,5 +514,9 @@ export const frigateCardHandleAction = ( }, action: string, ): void => { - handleActionConfig(node, hass, config, getActionConfigGivenAction(action, config)); + const actionConfig = getActionConfigGivenAction(action, config); + if (actionConfig || action == 'tap') { + // Only allow a tap action to use a default non-config (the more-info config). + handleActionConfig(node, hass, config, actionConfig); + } }; diff --git a/src/components/menu.ts b/src/components/menu.ts index 3a877128..737bfa38 100644 --- a/src/components/menu.ts +++ b/src/components/menu.ts @@ -81,7 +81,7 @@ export class FrigateCardMenu extends LitElement { config = ev.detail.config; } - // These interactions should only be handled by the card, as nothing + // These interactions should only be handled by the menu, as nothing // upstream has the user-provided configuration. ev.stopPropagation();