1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

Improve template docstring (#128967)

This commit is contained in:
epenet
2024-10-23 07:15:27 +02:00
committed by GitHub
parent 683ec87adf
commit f8e6fb81d6

View File

@@ -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