mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 12:15:08 +02:00
Remove unnecessary imports of http integration
This commit is contained in:
@@ -14,7 +14,6 @@ from plexauth import PlexAuth
|
||||
import requests.exceptions
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components import http
|
||||
from homeassistant.components.http import KEY_HASS, HomeAssistantView
|
||||
from homeassistant.components.media_player import DOMAIN as MP_DOMAIN
|
||||
from homeassistant.config_entries import (
|
||||
@@ -36,7 +35,7 @@ from homeassistant.const import (
|
||||
CONF_VERIFY_SSL,
|
||||
)
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.helpers import config_validation as cv, discovery_flow
|
||||
from homeassistant.helpers import config_validation as cv, discovery_flow, http
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
|
||||
from .const import (
|
||||
|
@@ -27,11 +27,11 @@ import voluptuous as vol
|
||||
from yarl import URL
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components import http
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.loader import async_get_application_credentials
|
||||
from homeassistant.util.hass_dict import HassKey
|
||||
|
||||
from . import http
|
||||
from .aiohttp_client import async_get_clientsession
|
||||
from .network import NoURLAvailableError
|
||||
|
||||
|
@@ -10,12 +10,12 @@ from aiohttp import hdrs
|
||||
from hass_nabucasa import remote
|
||||
import yarl
|
||||
|
||||
from homeassistant.components import http
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.exceptions import HomeAssistantError
|
||||
from homeassistant.loader import bind_hass
|
||||
from homeassistant.util.network import is_ip_address, is_loopback, normalize_url
|
||||
|
||||
from . import http
|
||||
from .hassio import is_hassio
|
||||
|
||||
TYPE_URL_INTERNAL = "internal_url"
|
||||
|
Reference in New Issue
Block a user