From 4e39cba2fff4d64a056b9c5e97f770fde193d342 Mon Sep 17 00:00:00 2001 From: Tim Clephas Date: Thu, 26 Jul 2018 11:34:13 +0200 Subject: [PATCH] Modify delay example to support decimals and large numbers (#5890) * Modify delay example to support decimals and large numbers * Forgot quotation marks --- source/_docs/scripts.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_docs/scripts.markdown b/source/_docs/scripts.markdown index ecbe2124337..f11861ad1ac 100644 --- a/source/_docs/scripts.markdown +++ b/source/_docs/scripts.markdown @@ -75,7 +75,7 @@ Delays are useful for temporarily suspending your script and start it at a later ```yaml # Waits however many minutes input_number.minute_delay is set to # Valid formats include HH:MM and HH:MM:SS -- delay: "00:{{ '%02d' % (states('input_number.minute_delay')|int) }}:00" +- delay: "{{ states('input_number.minute_delay') | multiply(60) | timestamp_custom('%H:%M:%S',False) }}" ``` {% endraw %}