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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user