From 2cf3f6bffaa0782a5bfbf890f357c843dea6a204 Mon Sep 17 00:00:00 2001 From: "Steven D. Lander" <3169732+stevendlander@users.noreply.github.com> Date: Mon, 14 Oct 2019 01:02:01 -0400 Subject: [PATCH] Issue #27288 Moving imports to top for tesla component (#27618) --- homeassistant/components/tesla/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/tesla/__init__.py b/homeassistant/components/tesla/__init__.py index 4c90f0784af..a08112d66b3 100644 --- a/homeassistant/components/tesla/__init__.py +++ b/homeassistant/components/tesla/__init__.py @@ -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)