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
|
@ -15,7 +15,7 @@ from homeassistant.helpers.event import async_track_sunrise, async_track_sunset
|
|||
|
||||
# mypy: allow-untyped-defs, no-check-untyped-defs
|
||||
|
||||
TRIGGER_SCHEMA = vol.Schema(
|
||||
TRIGGER_SCHEMA = cv.TRIGGER_BASE_SCHEMA.extend(
|
||||
{
|
||||
vol.Required(CONF_PLATFORM): "sun",
|
||||
vol.Required(CONF_EVENT): cv.sun_event,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue