mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Move imports to top for volvooncall (#29201)
This commit is contained in:
parent
0e4920d6a1
commit
243e80459d
@ -1,10 +1,10 @@
|
|||||||
"""Support for Volvo On Call."""
|
"""Support for Volvo On Call."""
|
||||||
import logging
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
import logging
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
from volvooncall import Connection
|
||||||
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
CONF_NAME,
|
CONF_NAME,
|
||||||
CONF_PASSWORD,
|
CONF_PASSWORD,
|
||||||
@ -14,6 +14,7 @@ from homeassistant.const import (
|
|||||||
)
|
)
|
||||||
from homeassistant.helpers import discovery
|
from homeassistant.helpers import discovery
|
||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.dispatcher import (
|
from homeassistant.helpers.dispatcher import (
|
||||||
async_dispatcher_connect,
|
async_dispatcher_connect,
|
||||||
async_dispatcher_send,
|
async_dispatcher_send,
|
||||||
@ -115,8 +116,6 @@ async def async_setup(hass, config):
|
|||||||
"""Set up the Volvo On Call component."""
|
"""Set up the Volvo On Call component."""
|
||||||
session = async_get_clientsession(hass)
|
session = async_get_clientsession(hass)
|
||||||
|
|
||||||
from volvooncall import Connection
|
|
||||||
|
|
||||||
connection = Connection(
|
connection = Connection(
|
||||||
session=session,
|
session=session,
|
||||||
username=config[DOMAIN].get(CONF_USERNAME),
|
username=config[DOMAIN].get(CONF_USERNAME),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user