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.device_automation.exceptions import (
InvalidDeviceAutomationConfig,
)
@ -33,7 +33,7 @@ from .const import (
)
from .utils import get_device_wrapper, get_input_triggers
TRIGGER_SCHEMA = TRIGGER_BASE_SCHEMA.extend(
TRIGGER_SCHEMA = DEVICE_TRIGGER_BASE_SCHEMA.extend(
{
vol.Required(CONF_TYPE): vol.In(SUPPORTED_INPUTS_EVENTS_TYPES),
vol.Required(CONF_SUBTYPE): vol.In(INPUTS_EVENTS_SUBTYPES),