Move imports to top for volvooncall (#29201)
This commit is contained in:
parent
0e4920d6a1
commit
243e80459d
1 changed files with 3 additions and 4 deletions
|
@ -1,10 +1,10 @@
|
|||
"""Support for Volvo On Call."""
|
||||
import logging
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
|
||||
import voluptuous as vol
|
||||
from volvooncall import Connection
|
||||
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.const import (
|
||||
CONF_NAME,
|
||||
CONF_PASSWORD,
|
||||
|
@ -14,6 +14,7 @@ from homeassistant.const import (
|
|||
)
|
||||
from homeassistant.helpers import discovery
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.dispatcher import (
|
||||
async_dispatcher_connect,
|
||||
async_dispatcher_send,
|
||||
|
@ -115,8 +116,6 @@ async def async_setup(hass, config):
|
|||
"""Set up the Volvo On Call component."""
|
||||
session = async_get_clientsession(hass)
|
||||
|
||||
from volvooncall import Connection
|
||||
|
||||
connection = Connection(
|
||||
session=session,
|
||||
username=config[DOMAIN].get(CONF_USERNAME),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue