mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Use core constants for homeassistant triggers (#46472)
This commit is contained in:
parent
2ecac6550f
commit
820a260252
@ -1,14 +1,13 @@
|
||||
"""Offer event listening automation rules."""
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.const import CONF_PLATFORM
|
||||
from homeassistant.const import CONF_EVENT_DATA, CONF_PLATFORM
|
||||
from homeassistant.core import HassJob, callback
|
||||
from homeassistant.helpers import config_validation as cv, template
|
||||
|
||||
# mypy: allow-untyped-defs
|
||||
|
||||
CONF_EVENT_TYPE = "event_type"
|
||||
CONF_EVENT_DATA = "event_data"
|
||||
CONF_EVENT_CONTEXT = "context"
|
||||
|
||||
TRIGGER_SCHEMA = vol.Schema(
|
||||
|
Loading…
x
Reference in New Issue
Block a user