diff --git a/homeassistant/components/google/__init__.py b/homeassistant/components/google/__init__.py index 78ea1616f99..b46d48848da 100644 --- a/homeassistant/components/google/__init__.py +++ b/homeassistant/components/google/__init__.py @@ -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" diff --git a/homeassistant/components/google/calendar.py b/homeassistant/components/google/calendar.py index 6448e035171..2fcde78354b 100644 --- a/homeassistant/components/google/calendar.py +++ b/homeassistant/components/google/calendar.py @@ -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,