From 47c0901df2b0c9851a1c3647cf06b333c6d40077 Mon Sep 17 00:00:00 2001 From: krazos Date: Mon, 12 Sep 2022 05:57:53 -0400 Subject: [PATCH] Eliminate redundant "for" in trigger description (#13669) --- src/data/automation_i18n.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/data/automation_i18n.ts b/src/data/automation_i18n.ts index 1c7e8a1537..93a6970cc9 100644 --- a/src/data/automation_i18n.ts +++ b/src/data/automation_i18n.ts @@ -143,11 +143,11 @@ export const describeTrigger = ( if ("for" in trigger) { let duration: string; if (typeof trigger.for === "number") { - duration = `for ${secondsToDuration(trigger.for)!}`; + duration = `${secondsToDuration(trigger.for)!}`; } else if (typeof trigger.for === "string") { - duration = `for ${trigger.for}`; + duration = `${trigger.for}`; } else { - duration = `for ${JSON.stringify(trigger.for)}`; + duration = `${JSON.stringify(trigger.for)}`; } base += ` for ${duration}`;