Add base schema for triggers (#51727)
* Add base schema for triggers * Tweak * Make TRIGGER_BASE_SCHEMA a voluptuous schema * Make state trigger BASE_SCHEMA a voluptuous schema
This commit is contained in:
parent
9e378d51af
commit
49bec86dae
16 changed files with 33 additions and 27 deletions
|
@ -18,7 +18,7 @@ EVENT_ENTER = "enter"
|
|||
EVENT_LEAVE = "leave"
|
||||
DEFAULT_EVENT = EVENT_ENTER
|
||||
|
||||
TRIGGER_SCHEMA = vol.Schema(
|
||||
TRIGGER_SCHEMA = cv.TRIGGER_BASE_SCHEMA.extend(
|
||||
{
|
||||
vol.Required(CONF_PLATFORM): "geo_location",
|
||||
vol.Required(CONF_SOURCE): cv.string,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue