Skip to content
Snippets Groups Projects
Unverified Commit f7112509 authored by Franck Nijhof's avatar Franck Nijhof Committed by GitHub
Browse files

Move imports to top for doorbird (#33627)

parent b112be35
No related branches found
No related tags found
No related merge requests found
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment