From 6f4cb18fa88d357eb873101b25159c989c0f9125 Mon Sep 17 00:00:00 2001 From: tkdrob Date: Tue, 9 Feb 2021 14:23:46 -0500 Subject: [PATCH] Use core constants for here_travel_time (#46246) --- homeassistant/components/here_travel_time/sensor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/here_travel_time/sensor.py b/homeassistant/components/here_travel_time/sensor.py index afc6534d0c6..e51e7a067fc 100644 --- a/homeassistant/components/here_travel_time/sensor.py +++ b/homeassistant/components/here_travel_time/sensor.py @@ -12,6 +12,7 @@ from homeassistant.const import ( ATTR_LATITUDE, ATTR_LONGITUDE, ATTR_MODE, + CONF_API_KEY, CONF_MODE, CONF_NAME, CONF_UNIT_SYSTEM, @@ -35,7 +36,6 @@ CONF_DESTINATION_ENTITY_ID = "destination_entity_id" CONF_ORIGIN_LATITUDE = "origin_latitude" CONF_ORIGIN_LONGITUDE = "origin_longitude" CONF_ORIGIN_ENTITY_ID = "origin_entity_id" -CONF_API_KEY = "api_key" CONF_TRAFFIC_MODE = "traffic_mode" CONF_ROUTE_MODE = "route_mode" CONF_ARRIVAL = "arrival" @@ -148,7 +148,6 @@ async def async_setup_platform( discovery_info: Optional[DiscoveryInfoType] = None, ) -> None: """Set up the HERE travel time platform.""" - api_key = config[CONF_API_KEY] here_client = herepy.RoutingApi(api_key)