mirror of
https://github.com/home-assistant/core
synced 2024-09-09 12:51:22 +02:00
Use core constants for google (#46210)
This commit is contained in:
parent
82607977ef
commit
92e5bf9786
@ -15,7 +15,14 @@ import voluptuous as vol
|
||||
from voluptuous.error import Error as VoluptuousError
|
||||
import yaml
|
||||
|
||||
from homeassistant.const import CONF_CLIENT_ID, CONF_CLIENT_SECRET
|
||||
from homeassistant.const import (
|
||||
CONF_CLIENT_ID,
|
||||
CONF_CLIENT_SECRET,
|
||||
CONF_DEVICE_ID,
|
||||
CONF_ENTITIES,
|
||||
CONF_NAME,
|
||||
CONF_OFFSET,
|
||||
)
|
||||
from homeassistant.helpers import discovery
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity import generate_entity_id
|
||||
@ -30,12 +37,8 @@ ENTITY_ID_FORMAT = DOMAIN + ".{}"
|
||||
CONF_TRACK_NEW = "track_new_calendar"
|
||||
|
||||
CONF_CAL_ID = "cal_id"
|
||||
CONF_DEVICE_ID = "device_id"
|
||||
CONF_NAME = "name"
|
||||
CONF_ENTITIES = "entities"
|
||||
CONF_TRACK = "track"
|
||||
CONF_SEARCH = "search"
|
||||
CONF_OFFSET = "offset"
|
||||
CONF_IGNORE_AVAILABILITY = "ignore_availability"
|
||||
CONF_MAX_RESULTS = "max_results"
|
||||
|
||||
|
@ -11,17 +11,14 @@ from homeassistant.components.calendar import (
|
||||
calculate_offset,
|
||||
is_offset_reached,
|
||||
)
|
||||
from homeassistant.const import CONF_DEVICE_ID, CONF_ENTITIES, CONF_NAME, CONF_OFFSET
|
||||
from homeassistant.helpers.entity import generate_entity_id
|
||||
from homeassistant.util import Throttle, dt
|
||||
|
||||
from . import (
|
||||
CONF_CAL_ID,
|
||||
CONF_DEVICE_ID,
|
||||
CONF_ENTITIES,
|
||||
CONF_IGNORE_AVAILABILITY,
|
||||
CONF_MAX_RESULTS,
|
||||
CONF_NAME,
|
||||
CONF_OFFSET,
|
||||
CONF_SEARCH,
|
||||
CONF_TRACK,
|
||||
DEFAULT_CONF_OFFSET,
|
||||
|
Loading…
Reference in New Issue
Block a user