mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Improve template docstring (#128967)
This commit is contained in:
parent
683ec87adf
commit
f8e6fb81d6
@ -1281,7 +1281,7 @@ def result_as_boolean(template_result: Any | None) -> bool:
|
||||
|
||||
True/not 0/'1'/'true'/'yes'/'on'/'enable' are considered truthy
|
||||
False/0/None/'0'/'false'/'no'/'off'/'disable' are considered falsy
|
||||
|
||||
All other values are falsy
|
||||
"""
|
||||
if template_result is None:
|
||||
return False
|
||||
|
Loading…
x
Reference in New Issue
Block a user