Rename device trigger base schema to DEVICE_TRIGGER_BASE_SCHEMA (#51719)
This commit is contained in:
parent
a7f05713a0
commit
76c3058d15
27 changed files with 55 additions and 55 deletions
|
@ -1,7 +1,7 @@
|
|||
"""Provides device triggers for binary sensors."""
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.device_automation import TRIGGER_BASE_SCHEMA
|
||||
from homeassistant.components.device_automation import DEVICE_TRIGGER_BASE_SCHEMA
|
||||
from homeassistant.components.device_automation.const import (
|
||||
CONF_TURNED_OFF,
|
||||
CONF_TURNED_ON,
|
||||
|
@ -178,7 +178,7 @@ ENTITY_TRIGGERS = {
|
|||
}
|
||||
|
||||
|
||||
TRIGGER_SCHEMA = TRIGGER_BASE_SCHEMA.extend(
|
||||
TRIGGER_SCHEMA = DEVICE_TRIGGER_BASE_SCHEMA.extend(
|
||||
{
|
||||
vol.Required(CONF_ENTITY_ID): cv.entity_id,
|
||||
vol.Required(CONF_TYPE): vol.In(TURNED_OFF + TURNED_ON),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue