Modify delay example to support decimals and large numbers (#5890)

* Modify delay example to support decimals and large numbers

* Forgot quotation marks
This commit is contained in:
Tim Clephas 2018-07-26 11:34:13 +02:00 committed by Fabian Affolter
parent b0d9ea036a
commit 4e39cba2ff

View File

@ -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 %}