mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Use core constants for here_travel_time (#46246)
This commit is contained in:
parent
a26cf7aeec
commit
6f4cb18fa8
@ -12,6 +12,7 @@ from homeassistant.const import (
|
|||||||
ATTR_LATITUDE,
|
ATTR_LATITUDE,
|
||||||
ATTR_LONGITUDE,
|
ATTR_LONGITUDE,
|
||||||
ATTR_MODE,
|
ATTR_MODE,
|
||||||
|
CONF_API_KEY,
|
||||||
CONF_MODE,
|
CONF_MODE,
|
||||||
CONF_NAME,
|
CONF_NAME,
|
||||||
CONF_UNIT_SYSTEM,
|
CONF_UNIT_SYSTEM,
|
||||||
@ -35,7 +36,6 @@ CONF_DESTINATION_ENTITY_ID = "destination_entity_id"
|
|||||||
CONF_ORIGIN_LATITUDE = "origin_latitude"
|
CONF_ORIGIN_LATITUDE = "origin_latitude"
|
||||||
CONF_ORIGIN_LONGITUDE = "origin_longitude"
|
CONF_ORIGIN_LONGITUDE = "origin_longitude"
|
||||||
CONF_ORIGIN_ENTITY_ID = "origin_entity_id"
|
CONF_ORIGIN_ENTITY_ID = "origin_entity_id"
|
||||||
CONF_API_KEY = "api_key"
|
|
||||||
CONF_TRAFFIC_MODE = "traffic_mode"
|
CONF_TRAFFIC_MODE = "traffic_mode"
|
||||||
CONF_ROUTE_MODE = "route_mode"
|
CONF_ROUTE_MODE = "route_mode"
|
||||||
CONF_ARRIVAL = "arrival"
|
CONF_ARRIVAL = "arrival"
|
||||||
@ -148,7 +148,6 @@ async def async_setup_platform(
|
|||||||
discovery_info: Optional[DiscoveryInfoType] = None,
|
discovery_info: Optional[DiscoveryInfoType] = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Set up the HERE travel time platform."""
|
"""Set up the HERE travel time platform."""
|
||||||
|
|
||||||
api_key = config[CONF_API_KEY]
|
api_key = config[CONF_API_KEY]
|
||||||
here_client = herepy.RoutingApi(api_key)
|
here_client = herepy.RoutingApi(api_key)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user