Rename device trigger base schema to DEVICE_TRIGGER_BASE_SCHEMA (#51719)

This commit is contained in:
Erik Montnemery 2021-06-10 19:11:38 +02:00 committed by GitHub
parent a7f05713a0
commit 76c3058d15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 55 additions and 55 deletions

View file

@ -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),