Mobile App: Support rendering multiple templates at once (#21851)
* Support rendering multiple templates at once * Only catch TemplateError and dont log the error
This commit is contained in:
1 parent
acc44aaf6c
commit
5ef602bc2e
5 files changed
+29
-26
No files matched your search
@@ -43,7 +43,6 @@ ATTR_WEBHOOK_TYPE = 'type'
|
||||
|
||||
ERR_ENCRYPTION_REQUIRED = 'encryption_required'
|
||||
ERR_INVALID_COMPONENT = 'invalid_component'
|
||||
ERR_RENDER_FAILURE = 'render_failure'
|
||||
ERR_SAVE_FAILURE = 'save_failure'
|
||||
|
||||
WEBHOOK_TYPE_CALL_SERVICE = 'call_service'
|
||||
@@ -99,8 +98,10 @@ FIRE_EVENT_SCHEMA = vol.Schema({
|
||||
})
|
||||
|
||||
RENDER_TEMPLATE_SCHEMA = vol.Schema({
|
||||
vol.Required(ATTR_TEMPLATE): cv.string,
|
||||
vol.Optional(ATTR_TEMPLATE_VARIABLES, default={}): dict,
|
||||
str: {
|
||||
vol.Required(ATTR_TEMPLATE): cv.template,
|
||||
vol.Optional(ATTR_TEMPLATE_VARIABLES, default={}): dict,
|
||||
}
|
||||
})
|
||||
|
||||
WEBHOOK_SCHEMAS = {
|
||||
|
||||
Reference in new issue
Block a user