mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Services (small_pr)(fix): Added missing return on data template error (#12184)
* Added return on data template error * Rebased so not sure why spelling errors returned...
This commit is contained in:
committed by
Pascal Vizeli
parent
137933a774
commit
f5030d9ebf
@@ -74,6 +74,7 @@ def async_call_from_config(hass, config, blocking=False, variables=None,
|
||||
config[CONF_SERVICE_DATA_TEMPLATE], variables))
|
||||
except TemplateError as ex:
|
||||
_LOGGER.error('Error rendering data template: %s', ex)
|
||||
return
|
||||
|
||||
if CONF_SERVICE_ENTITY_ID in config:
|
||||
service_data[ATTR_ENTITY_ID] = config[CONF_SERVICE_ENTITY_ID]
|
||||
|
||||
Reference in New Issue
Block a user