Sort imports according to PEP8 for pi_hole (#29726)
parent
942f654d92
commit
236a21c76e
|
@ -1,31 +1,31 @@
|
|||
"""The pi_hole component."""
|
||||
import logging
|
||||
|
||||
import voluptuous as vol
|
||||
from hole import Hole
|
||||
from hole.exceptions import HoleError
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN
|
||||
from homeassistant.const import (
|
||||
CONF_API_KEY,
|
||||
CONF_HOST,
|
||||
CONF_NAME,
|
||||
CONF_API_KEY,
|
||||
CONF_SSL,
|
||||
CONF_VERIFY_SSL,
|
||||
)
|
||||
from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN
|
||||
from homeassistant.helpers import config_validation as cv
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
from homeassistant.helpers.discovery import async_load_platform
|
||||
from homeassistant.util import Throttle
|
||||
|
||||
from .const import (
|
||||
DOMAIN,
|
||||
CONF_LOCATION,
|
||||
DEFAULT_HOST,
|
||||
DEFAULT_LOCATION,
|
||||
DEFAULT_NAME,
|
||||
DEFAULT_SSL,
|
||||
DEFAULT_VERIFY_SSL,
|
||||
DOMAIN,
|
||||
MIN_TIME_BETWEEN_UPDATES,
|
||||
SERVICE_DISABLE,
|
||||
SERVICE_DISABLE_ATTR_DURATION,
|
||||
|
|
|
@ -4,10 +4,10 @@ import logging
|
|||
from homeassistant.helpers.entity import Entity
|
||||
|
||||
from .const import (
|
||||
DOMAIN as PIHOLE_DOMAIN,
|
||||
ATTR_BLOCKED_DOMAINS,
|
||||
SENSOR_LIST,
|
||||
DOMAIN as PIHOLE_DOMAIN,
|
||||
SENSOR_DICT,
|
||||
SENSOR_LIST,
|
||||
)
|
||||
|
||||
LOGGER = logging.getLogger(__name__)
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
"""Test pi_hole component."""
|
||||
|
||||
from unittest.mock import patch
|
||||
|
||||
from asynctest import CoroutineMock
|
||||
from hole import Hole
|
||||
|
||||
from homeassistant.components import pi_hole
|
||||
|
||||
from tests.common import async_setup_component
|
||||
from unittest.mock import patch
|
||||
|
||||
|
||||
def mock_pihole_data_call(Hole):
|
||||
|
|
Loading…
Reference in New Issue