mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +00:00
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:
parent
b0d9ea036a
commit
4e39cba2ff
@ -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 %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user