Remove unused code in doorbird (#98779)

This commit is contained in:
J. Nick Koston 2023-08-21 15:23:16 -05:00 committed by GitHub
parent d582e60a6e
commit 9123e13774
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 17 deletions

View file

@ -7,7 +7,6 @@ from typing import Any
from doorbirdpy import DoorBird
import requests
import voluptuous as vol
from homeassistant.components import persistent_notification
from homeassistant.config_entries import ConfigEntry
@ -32,19 +31,6 @@ _LOGGER = logging.getLogger(__name__)
CONF_CUSTOM_URL = "hass_url_override"
DEVICE_SCHEMA = vol.Schema(
{
vol.Required(CONF_HOST): cv.string,
vol.Required(CONF_USERNAME): cv.string,
vol.Required(CONF_PASSWORD): cv.string,
vol.Required(CONF_TOKEN): cv.string,
vol.Optional(CONF_EVENTS, default=[]): vol.All(cv.ensure_list, [cv.string]),
vol.Optional(CONF_CUSTOM_URL): cv.string,
vol.Optional(CONF_NAME): cv.string,
}
)
CONFIG_SCHEMA = cv.removed(DOMAIN, raise_if_present=False)

View file

@ -2,7 +2,6 @@
from __future__ import annotations
from http import HTTPStatus
import logging
from aiohttp import web
@ -13,8 +12,6 @@ from .const import API_URL, DOMAIN
from .device import async_reset_device_favorites
from .util import get_door_station_by_token
_LOGGER = logging.getLogger(__name__)
class DoorBirdRequestView(HomeAssistantView):
"""Provide a page for the device to call."""