mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Move imports in waze_travel_time component (#27384)
This commit is contained in:
parent
6c945c845e
commit
e93ffa5688
@ -3,21 +3,22 @@ from datetime import timedelta
|
|||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
import WazeRouteCalculator
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_ATTRIBUTION,
|
ATTR_ATTRIBUTION,
|
||||||
CONF_NAME,
|
|
||||||
CONF_REGION,
|
|
||||||
EVENT_HOMEASSISTANT_START,
|
|
||||||
ATTR_LATITUDE,
|
ATTR_LATITUDE,
|
||||||
ATTR_LONGITUDE,
|
ATTR_LONGITUDE,
|
||||||
CONF_UNIT_SYSTEM_METRIC,
|
CONF_NAME,
|
||||||
|
CONF_REGION,
|
||||||
CONF_UNIT_SYSTEM_IMPERIAL,
|
CONF_UNIT_SYSTEM_IMPERIAL,
|
||||||
|
CONF_UNIT_SYSTEM_METRIC,
|
||||||
|
EVENT_HOMEASSISTANT_START,
|
||||||
)
|
)
|
||||||
import homeassistant.helpers.config_validation as cv
|
|
||||||
from homeassistant.helpers import location
|
from homeassistant.helpers import location
|
||||||
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
@ -237,7 +238,6 @@ class WazeTravelTimeData:
|
|||||||
vehicle_type,
|
vehicle_type,
|
||||||
):
|
):
|
||||||
"""Set up WazeRouteCalculator."""
|
"""Set up WazeRouteCalculator."""
|
||||||
import WazeRouteCalculator
|
|
||||||
|
|
||||||
self._calc = WazeRouteCalculator
|
self._calc = WazeRouteCalculator
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user