mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 16:27:19 +00:00
Fix "Template filter/function defaults" examples in 2022.6 release notes (#22945)
This commit is contained in:
parent
276d116d79
commit
ce98661081
@ -435,9 +435,9 @@ Examples:
|
||||
{% raw %}
|
||||
|
||||
- `{{ "abc" | float }}`: Will fail to render
|
||||
- `{{ "abc" | float(default=5) }}`: Will render as -5, no warning will be logged
|
||||
- `{{ "abc" | float(default=5) }}`: Will render as 5, no warning will be logged
|
||||
- `{{ float("abc") }}`: Will fail to render
|
||||
- `{{ float("abc", default=5) }}`: Will render as -5, no warning will be logged
|
||||
- `{{ float("abc", default=5) }}`: Will render as 5, no warning will be logged
|
||||
|
||||
{% endraw %}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user