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

Make automations log errors (#18965)

This commit is contained in:
Paulus Schoutsen
2018-12-13 12:21:16 +01:00
committed by GitHub
parent 8ea0a8d40b
commit 9d9e11372b
5 changed files with 110 additions and 4 deletions

View File

@@ -55,9 +55,13 @@ async def async_call_from_config(hass, config, blocking=False, variables=None,
variables)
domain_service = cv.service(domain_service)
except TemplateError as ex:
if blocking:
raise
_LOGGER.error('Error rendering service name template: %s', ex)
return
except vol.Invalid:
if blocking:
raise
_LOGGER.error('Template rendered invalid service: %s',
domain_service)
return