Move imports to top for volvooncall (#29201)

This commit is contained in:
springstan 2019-11-29 01:59:48 +01:00 committed by Martin Hjelmare
parent 0e4920d6a1
commit 243e80459d

View file

@ -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),