Add ability to continue scripts/automations on error (#70004)

This commit is contained in:
Franck Nijhof
2022-04-14 22:43:14 +02:00
committed by GitHub
parent 66265b6e9a
commit cdabcce83a
4 changed files with 225 additions and 8 deletions

View File

@@ -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(
{