Move imports to top for doorbird (#29442)

This commit is contained in:
springstan 2019-12-05 06:22:51 +01:00 committed by Paulus Schoutsen
parent 27200865ee
commit 5ee20b61b3
2 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,7 @@
import logging import logging
from urllib.error import HTTPError from urllib.error import HTTPError
from doorbirdpy import DoorBird
import voluptuous as vol import voluptuous as vol
from homeassistant.components.http import HomeAssistantView from homeassistant.components.http import HomeAssistantView
@ -51,7 +52,6 @@ CONFIG_SCHEMA = vol.Schema(
def setup(hass, config): def setup(hass, config):
"""Set up the DoorBird component.""" """Set up the DoorBird component."""
from doorbirdpy import DoorBird
# Provide an endpoint for the doorstations to call to trigger events # Provide an endpoint for the doorstations to call to trigger events
hass.http.register_view(DoorBirdRequestView) hass.http.register_view(DoorBirdRequestView)

View File

@ -6,7 +6,7 @@ import logging
import aiohttp import aiohttp
import async_timeout import async_timeout
from homeassistant.components.camera import Camera, SUPPORT_STREAM from homeassistant.components.camera import SUPPORT_STREAM, Camera
from homeassistant.helpers.aiohttp_client import async_get_clientsession from homeassistant.helpers.aiohttp_client import async_get_clientsession
import homeassistant.util.dt as dt_util import homeassistant.util.dt as dt_util