mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Eliminate redundant "for" in trigger description (#13669)
This commit is contained in:
parent
330f3e5ce4
commit
e95d5b1afb
@ -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}`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user