mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-14 12:56:54 +00:00
Added format to two digits (#5398)
Formatted the digit for the delay to two digits, rather than a random one or two. There have been multiple reports of the example in the doc not working for 1 through 9, and it needing formatted to two digits.
This commit is contained in:
parent
692db79b72
commit
09e1c0cb0c
@ -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:{{ states('input_number.minute_delay')|int }}:00"
|
||||
- delay: "00:{{ '%02d' % (states('input_number.minute_delay')|int) }}:00"
|
||||
```
|
||||
{% endraw %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user