Import device automation constants from root (#78272)

pull/78245/head
epenet 2022-09-13 00:19:57 +02:00 committed by GitHub
parent 5f1979dbc3
commit 9b0602a8b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ from __future__ import annotations
import voluptuous as vol
from homeassistant.components.device_automation.const import CONF_IS_OFF, CONF_IS_ON
from homeassistant.components.device_automation import CONF_IS_OFF, CONF_IS_ON
from homeassistant.const import (
CONF_CONDITION,
CONF_ENTITY_ID,

View File

@ -1,10 +1,10 @@
"""Provides device triggers for binary sensors."""
import voluptuous as vol
from homeassistant.components.device_automation import DEVICE_TRIGGER_BASE_SCHEMA
from homeassistant.components.device_automation.const import (
from homeassistant.components.device_automation import (
CONF_TURNED_OFF,
CONF_TURNED_ON,
DEVICE_TRIGGER_BASE_SCHEMA,
)
from homeassistant.components.homeassistant.triggers import state as state_trigger
from homeassistant.const import CONF_ENTITY_ID, CONF_FOR, CONF_TYPE