From 243e80459dc11fc33cfa15b9f4f82b22297ee379 Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Fri, 29 Nov 2019 01:59:48 +0100 Subject: [PATCH] Move imports to top for volvooncall (#29201) --- homeassistant/components/volvooncall/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/volvooncall/__init__.py b/homeassistant/components/volvooncall/__init__.py index c41c72020c4..c621a12943b 100644 --- a/homeassistant/components/volvooncall/__init__.py +++ b/homeassistant/components/volvooncall/__init__.py @@ -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),