diff --git a/src/panels/config/integrations/ha-integration-card.ts b/src/panels/config/integrations/ha-integration-card.ts index 9a145617ba..5d3b7096c7 100644 --- a/src/panels/config/integrations/ha-integration-card.ts +++ b/src/panels/config/integrations/ha-integration-card.ts @@ -548,6 +548,9 @@ export class HaIntegrationCard extends LitElement { } private async _handleDisableDebugLogging(ev: MouseEvent) { + // Stop propagation since otherwise we end up here twice while we await the log level change + // and trigger two identical debug log downloads. + ev.stopPropagation(); const configEntry = ((ev.target as HTMLElement).closest("ha-card") as any) .configEntry; const integration = configEntry.domain;