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
|
@ -4,7 +4,7 @@ from __future__ import annotations
|
|||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.automation import AutomationActionType
|
||||
from homeassistant.components.device_automation import TRIGGER_BASE_SCHEMA
|
||||
from homeassistant.components.device_automation import DEVICE_TRIGGER_BASE_SCHEMA
|
||||
from homeassistant.components.homeassistant.triggers import state as state_trigger
|
||||
from homeassistant.const import (
|
||||
CONF_DEVICE_ID,
|
||||
|
@ -24,7 +24,7 @@ from . import DOMAIN
|
|||
|
||||
TRIGGER_TYPES = {"locked", "unlocked"}
|
||||
|
||||
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(TRIGGER_TYPES),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue