vscode-home-assistant icon indicating copy to clipboard operation
vscode-home-assistant copied to clipboard

render template: show errors in output

Open howardjohn opened this issue 2 years ago • 1 comments

Currently if a template has errors, they are silently ignored in the 'render template' command.

For example:

[9:14:21 PM] Rendering template:
result: {{ "bad" <  1}}

Result:

It would be nice if this instead showed

[9:14:21 PM] Rendering template:
result: {{ "bad" <  1}}

Error:
TypeError: '<' not supported between instances of 'str' and 'int'

howardjohn avatar Jul 09 '22 21:07 howardjohn

how do I use this "render template" command? I'm not seeing it in the context menu?

johntdyer avatar Nov 22 '22 16:11 johntdyer