Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally do not log template rendering errors #18724

Merged
merged 1 commit into from Dec 2, 2018

Conversation

emontnemery
Copy link
Contributor

@emontnemery emontnemery commented Nov 26, 2018

Description:

Unlike async_render, async_render_with_possible_json_value prints an angry error message if the template could not be rendered.
This PR disables logging if error_value (default value in case the template can't be rendered) has been set.

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.

@emontnemery emontnemery requested a review from a team as a code owner November 26, 2018 18:51
@homeassistant homeassistant added core small-pr PRs with less than 30 lines. cla-signed labels Nov 26, 2018
@ghost ghost assigned emontnemery Nov 26, 2018
@ghost ghost added the in progress label Nov 26, 2018
@balloob balloob merged commit bbb40fd into home-assistant:dev Dec 2, 2018
@ghost ghost removed the in progress label Dec 2, 2018
@emontnemery emontnemery deleted the template_ignore_errors branch December 2, 2018 16:46
@balloob balloob mentioned this pull request Dec 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed core small-pr PRs with less than 30 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants