mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 08:46:51 +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 %}
|
{% raw %}
|
||||||
|
|
||||||
- `{{ "abc" | float }}`: Will fail to render
|
- `{{ "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") }}`: 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 %}
|
{% endraw %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user