mirror of
https://github.com/home-assistant/core.git
synced 2025-08-31 16:11:00 +00:00
Add ability to continue scripts/automations on error (#70004)
This commit is contained in:
@@ -36,6 +36,7 @@ from homeassistant.const import (
|
||||
CONF_CHOOSE,
|
||||
CONF_CONDITION,
|
||||
CONF_CONDITIONS,
|
||||
CONF_CONTINUE_ON_ERROR,
|
||||
CONF_CONTINUE_ON_TIMEOUT,
|
||||
CONF_COUNT,
|
||||
CONF_DEFAULT,
|
||||
@@ -1056,7 +1057,10 @@ def script_action(value: Any) -> dict:
|
||||
|
||||
SCRIPT_SCHEMA = vol.All(ensure_list, [script_action])
|
||||
|
||||
SCRIPT_ACTION_BASE_SCHEMA = {vol.Optional(CONF_ALIAS): string}
|
||||
SCRIPT_ACTION_BASE_SCHEMA = {
|
||||
vol.Optional(CONF_ALIAS): string,
|
||||
vol.Optional(CONF_CONTINUE_ON_ERROR): boolean,
|
||||
}
|
||||
|
||||
EVENT_SCHEMA = vol.Schema(
|
||||
{
|
||||
|
Reference in New Issue
Block a user