Use core constants for homeassistant triggers (#46472)

This commit is contained in:
tkdrob 2021-02-13 06:07:42 -05:00 committed by GitHub
parent 2ecac6550f
commit 820a260252
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(