8000 Move imports to top for volvooncall by springstan · Pull Request #29201 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Move imports to top for volvooncall #29201

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions homeassistant/components/volvooncall/__init__.py
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -14,6 +14,7 @@
)
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,
Expand Down Expand Up @@ -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),
Expand Down
0