mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Move imports in mychevy component (#28032)
This commit is contained in:
parent
38db4b0a23
commit
206f8cef5c
@ -4,11 +4,11 @@ import logging
|
|||||||
import threading
|
import threading
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
import mychevy.mychevy as mc
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||||
from homeassistant.helpers import config_validation as cv
|
from homeassistant.helpers import config_validation as cv, discovery
|
||||||
from homeassistant.helpers import discovery
|
|
||||||
from homeassistant.util import Throttle
|
from homeassistant.util import Throttle
|
||||||
|
|
||||||
DOMAIN = "mychevy"
|
DOMAIN = "mychevy"
|
||||||
@ -71,8 +71,6 @@ class EVBinarySensorConfig:
|
|||||||
|
|
||||||
def setup(hass, base_config):
|
def setup(hass, base_config):
|
||||||
"""Set up the mychevy component."""
|
"""Set up the mychevy component."""
|
||||||
import mychevy.mychevy as mc
|
|
||||||
|
|
||||||
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