From f71125092fb49e6beaa899b4ade581509361c491 Mon Sep 17 00:00:00 2001
From: Franck Nijhof <git@frenck.dev>
Date: Sat, 4 Apr 2020 15:49:20 +0200
Subject: [PATCH] Move imports to top for doorbird (#33627)

---
 homeassistant/components/doorbird/__init__.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/homeassistant/components/doorbird/__init__.py b/homeassistant/components/doorbird/__init__.py
index f762a722f2f..bbbaa3d340c 100644
--- a/homeassistant/components/doorbird/__init__.py
+++ b/homeassistant/components/doorbird/__init__.py
@@ -4,6 +4,7 @@ import logging
 import urllib
 from urllib.error import HTTPError
 
+from aiohttp import web
 from doorbirdpy import DoorBird
 import voluptuous as vol
 
@@ -58,7 +59,6 @@ CONFIG_SCHEMA = vol.Schema(
 
 async def async_setup(hass: HomeAssistant, config: dict):
     """Set up the DoorBird component."""
-
     hass.data.setdefault(DOMAIN, {})
 
     # Provide an endpoint for the doorstations to call to trigger events
@@ -341,8 +341,6 @@ class DoorBirdRequestView(HomeAssistantView):
 
     async def get(self, request, event):
         """Respond to requests from the device."""
-        from aiohttp import web
-
         hass = request.app["hass"]
 
         token = request.query.get("token")
-- 
GitLab