File tree Expand file tree Collapse file tree 5 files changed +21
-9
lines changed
homeassistant/components/scrape Expand file tree Collapse file tree 5 files changed +21
-9
lines changed Original file line number Diff line number Diff line change 99import voluptuous as vol
1010
1111from homeassistant .components .rest import create_rest_data_from_config
12- from homeassistant .components .rest .data import DEFAULT_TIMEOUT
13- from homeassistant .components .rest .schema import DEFAULT_METHOD , METHODS
12+ from homeassistant .components .rest .data import ( # pylint: disable=hass-component-root-import
13+ DEFAULT_TIMEOUT ,
14+ )
15+ from homeassistant .components .rest .schema import ( # pylint: disable=hass-component-root-import
16+ DEFAULT_METHOD ,
17+ METHODS ,
18+ )
1419from homeassistant .components .sensor import (
1520 CONF_STATE_CLASS ,
1621 DOMAIN as SENSOR_DOMAIN ,
Original file line number Diff line number Diff line change 88
99from bs4 import BeautifulSoup
1010
11- from homeassistant .components .rest import RestData
12- from homeassistant .components .rest .const import CONF_PAYLOAD_TEMPLATE
11+ from homeassistant .components .rest import CONF_PAYLOAD_TEMPLATE , RestData
1312from homeassistant .config_entries import ConfigEntry
1413from homeassistant .const import CONF_RESOURCE_TEMPLATE
1514from homeassistant .core import HomeAssistant
Original file line number Diff line number Diff line change @@ -132,7 +132,6 @@ class ObsoleteImportMatch:
132132 "homeassistant_hardware" ,
133133 "http" ,
134134 "recorder" ,
135- "rest" ,
136135)
137136
138137
Original file line number Diff line number Diff line change 99
1010import pytest
1111
12- from homeassistant .components .rest .data import DEFAULT_TIMEOUT
13- from homeassistant .components .rest .schema import DEFAULT_METHOD , DEFAULT_VERIFY_SSL
12+ from homeassistant .components .rest .data import ( # pylint: disable=hass-component-root-import
13+ DEFAULT_TIMEOUT ,
14+ )
15+ from homeassistant .components .rest .schema import ( # pylint: disable=hass-component-root-import
16+ DEFAULT_METHOD ,
17+ DEFAULT_VERIFY_SSL ,
18+ )
1419from homeassistant .components .scrape .const import (
1520 CONF_ENCODING ,
1621 CONF_INDEX ,
Original file line number Diff line number Diff line change 66import uuid
77
88from homeassistant import config_entries
9- from homeassistant .components .rest .data import DEFAULT_TIMEOUT
10- from homeassistant .components .rest .schema import DEFAULT_METHOD
9+ from homeassistant .components .rest .data import ( # pylint: disable=hass-component-root-import
10+ DEFAULT_TIMEOUT ,
11+ )
12+ from homeassistant .components .rest .schema import ( # pylint: disable=hass-component-root-import
13+ DEFAULT_METHOD ,
14+ )
1115from homeassistant .components .scrape import DOMAIN
1216from homeassistant .components .scrape .const import (
1317 CONF_ENCODING ,
You can’t perform that action at this time.
0 commit comments