mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Template config validator should not allow dictionaries
This commit is contained in:
parent
6dc49ff123
commit
e773526714
@ -239,6 +239,8 @@ def template(value):
|
||||
"""Validate a jinja2 template."""
|
||||
if value is None:
|
||||
raise vol.Invalid('template value is None')
|
||||
if isinstance(value, (list, dict)):
|
||||
raise vol.Invalid('template value should be a string')
|
||||
|
||||
value = str(value)
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user