mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00: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
|
from voluptuous.error import Error as VoluptuousError
|
||||||
import yaml
|
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
|
from homeassistant.helpers import discovery
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.entity import generate_entity_id
|
from homeassistant.helpers.entity import generate_entity_id
|
||||||
@ -30,12 +37,8 @@ ENTITY_ID_FORMAT = DOMAIN + ".{}"
|
|||||||
CONF_TRACK_NEW = "track_new_calendar"
|
CONF_TRACK_NEW = "track_new_calendar"
|
||||||
|
|
||||||
CONF_CAL_ID = "cal_id"
|
CONF_CAL_ID = "cal_id"
|
||||||
CONF_DEVICE_ID = "device_id"
|
|
||||||
CONF_NAME = "name"
|
|
||||||
CONF_ENTITIES = "entities"
|
|
||||||
CONF_TRACK = "track"
|
CONF_TRACK = "track"
|
||||||
CONF_SEARCH = "search"
|
CONF_SEARCH = "search"
|
||||||
CONF_OFFSET = "offset"
|
|
||||||
CONF_IGNORE_AVAILABILITY = "ignore_availability"
|
CONF_IGNORE_AVAILABILITY = "ignore_availability"
|
||||||
CONF_MAX_RESULTS = "max_results"
|
CONF_MAX_RESULTS = "max_results"
|
||||||
|
|
||||||
|
@ -11,17 +11,14 @@ from homeassistant.components.calendar import (
|
|||||||
calculate_offset,
|
calculate_offset,
|
||||||
is_offset_reached,
|
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.helpers.entity import generate_entity_id
|
||||||
from homeassistant.util import Throttle, dt
|
from homeassistant.util import Throttle, dt
|
||||||
|
|
||||||
from . import (
|
from . import (
|
||||||
CONF_CAL_ID,
|
CONF_CAL_ID,
|
||||||
CONF_DEVICE_ID,
|
|
||||||
CONF_ENTITIES,
|
|
||||||
CONF_IGNORE_AVAILABILITY,
|
CONF_IGNORE_AVAILABILITY,
|
||||||
CONF_MAX_RESULTS,
|
CONF_MAX_RESULTS,
|
||||||
CONF_NAME,
|
|
||||||
CONF_OFFSET,
|
|
||||||
CONF_SEARCH,
|
CONF_SEARCH,
|
||||||
CONF_TRACK,
|
CONF_TRACK,
|
||||||
DEFAULT_CONF_OFFSET,
|
DEFAULT_CONF_OFFSET,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user