mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Allow templates for enabling automation triggers (#114458)
* Allow templates for enabling automation triggers * Test exception for non-limited template * Use `cv.template` instead of `cv.template_complex` * skip trigger with invalid enable template instead of returning and thus not evaluating other triggers
This commit is contained in:
@ -1648,7 +1648,7 @@ TRIGGER_BASE_SCHEMA = vol.Schema(
|
||||
vol.Required(CONF_PLATFORM): str,
|
||||
vol.Optional(CONF_ID): str,
|
||||
vol.Optional(CONF_VARIABLES): SCRIPT_VARIABLES_SCHEMA,
|
||||
vol.Optional(CONF_ENABLED): boolean,
|
||||
vol.Optional(CONF_ENABLED): vol.Any(boolean, template),
|
||||
}
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user