mirror of
https://github.com/home-assistant/core.git
synced 2025-12-19 18:38:58 +00:00
Remove rest from _IGNORE_ROOT_IMPORT in pylint plugin (#154662)
This commit is contained in:
@@ -9,8 +9,13 @@ import uuid
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.rest import create_rest_data_from_config
|
||||
from homeassistant.components.rest.data import DEFAULT_TIMEOUT
|
||||
from homeassistant.components.rest.schema import DEFAULT_METHOD, METHODS
|
||||
from homeassistant.components.rest.data import ( # pylint: disable=hass-component-root-import
|
||||
DEFAULT_TIMEOUT,
|
||||
)
|
||||
from homeassistant.components.rest.schema import ( # pylint: disable=hass-component-root-import
|
||||
DEFAULT_METHOD,
|
||||
METHODS,
|
||||
)
|
||||
from homeassistant.components.sensor import (
|
||||
CONF_STATE_CLASS,
|
||||
DOMAIN as SENSOR_DOMAIN,
|
||||
|
||||
@@ -8,8 +8,7 @@ from typing import Any
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
from homeassistant.components.rest import RestData
|
||||
from homeassistant.components.rest.const import CONF_PAYLOAD_TEMPLATE
|
||||
from homeassistant.components.rest import CONF_PAYLOAD_TEMPLATE, RestData
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import CONF_RESOURCE_TEMPLATE
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
@@ -132,7 +132,6 @@ _IGNORE_ROOT_IMPORT = (
|
||||
"homeassistant_hardware",
|
||||
"http",
|
||||
"recorder",
|
||||
"rest",
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -9,8 +9,13 @@ import uuid
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.rest.data import DEFAULT_TIMEOUT
|
||||
from homeassistant.components.rest.schema import DEFAULT_METHOD, DEFAULT_VERIFY_SSL
|
||||
from homeassistant.components.rest.data import ( # pylint: disable=hass-component-root-import
|
||||
DEFAULT_TIMEOUT,
|
||||
)
|
||||
from homeassistant.components.rest.schema import ( # pylint: disable=hass-component-root-import
|
||||
DEFAULT_METHOD,
|
||||
DEFAULT_VERIFY_SSL,
|
||||
)
|
||||
from homeassistant.components.scrape.const import (
|
||||
CONF_ENCODING,
|
||||
CONF_INDEX,
|
||||
|
||||
@@ -6,8 +6,12 @@ from unittest.mock import AsyncMock, patch
|
||||
import uuid
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components.rest.data import DEFAULT_TIMEOUT
|
||||
from homeassistant.components.rest.schema import DEFAULT_METHOD
|
||||
from homeassistant.components.rest.data import ( # pylint: disable=hass-component-root-import
|
||||
DEFAULT_TIMEOUT,
|
||||
)
|
||||
from homeassistant.components.rest.schema import ( # pylint: disable=hass-component-root-import
|
||||
DEFAULT_METHOD,
|
||||
)
|
||||
from homeassistant.components.scrape import DOMAIN
|
||||
from homeassistant.components.scrape.const import (
|
||||
CONF_ENCODING,
|
||||
|
||||
Reference in New Issue
Block a user