Issue #27288 Moving imports to top for tesla component (#27618)

pull/27631/head
Steven D. Lander 2019-10-14 01:02:01 -04:00 committed by Paulus Schoutsen
parent afa7e0bfe8
commit 2cf3f6bffa
1 changed files with 2 additions and 2 deletions

View File

@ -3,6 +3,8 @@ from collections import defaultdict
import logging
import voluptuous as vol
from teslajsonpy import Controller as teslaAPI, TeslaException
from homeassistant.const import (
ATTR_BATTERY_LEVEL,
@ -52,8 +54,6 @@ TESLA_COMPONENTS = [
def setup(hass, base_config):
"""Set up of Tesla component."""
from teslajsonpy import Controller as teslaAPI, TeslaException
config = base_config.get(DOMAIN)
email = config.get(CONF_USERNAME)