mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
parent
afa7e0bfe8
commit
2cf3f6bffa
@ -3,6 +3,8 @@ from collections import defaultdict
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
from teslajsonpy import Controller as teslaAPI, TeslaException
|
||||||
|
|
||||||
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_BATTERY_LEVEL,
|
ATTR_BATTERY_LEVEL,
|
||||||
@ -52,8 +54,6 @@ TESLA_COMPONENTS = [
|
|||||||
|
|
||||||
def setup(hass, base_config):
|
def setup(hass, base_config):
|
||||||
"""Set up of Tesla component."""
|
"""Set up of Tesla component."""
|
||||||
from teslajsonpy import Controller as teslaAPI, TeslaException
|
|
||||||
|
|
||||||
config = base_config.get(DOMAIN)
|
config = base_config.get(DOMAIN)
|
||||||
|
|
||||||
email = config.get(CONF_USERNAME)
|
email = config.get(CONF_USERNAME)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user