1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Allow skip parsing template result (#42401)

This commit is contained in:
Franck Nijhof
2020-10-26 16:01:09 +01:00
committed by GitHub
parent 80e8068b46
commit 45aba9bdf2
10 changed files with 98 additions and 24 deletions

View File

@@ -461,7 +461,10 @@ def async_template(
if isinstance(value, bool):
return value
return str(value).lower() == "true"
if isinstance(value, str):
return value.lower() == "true"
return False
def async_template_from_config(