Move imports in mychevy component (#28032)
This commit is contained in:
parent
38db4b0a23
commit
206f8cef5c
1 changed files with 2 additions and 4 deletions
|
@ -4,11 +4,11 @@ import logging
|
|||
import threading
|
||||
import time
|
||||
|
||||
import mychevy.mychevy as mc
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||
from homeassistant.helpers import config_validation as cv
|
||||
from homeassistant.helpers import discovery
|
||||
from homeassistant.helpers import config_validation as cv, discovery
|
||||
from homeassistant.util import Throttle
|
||||
|
||||
DOMAIN = "mychevy"
|
||||
|
@ -71,8 +71,6 @@ class EVBinarySensorConfig:
|
|||
|
||||
def setup(hass, base_config):
|
||||
"""Set up the mychevy component."""
|
||||
import mychevy.mychevy as mc
|
||||
|
||||
config = base_config.get(DOMAIN)
|
||||
|
||||
email = config.get(CONF_USERNAME)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue