mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Sort imports according to PEP8 for iaqualink (#29681)
This commit is contained in:
parent
b54c8641b4
commit
9cf3ff319e
@ -5,8 +5,6 @@ import logging
|
|||||||
from typing import Any, Dict
|
from typing import Any, Dict
|
||||||
|
|
||||||
import aiohttp.client_exceptions
|
import aiohttp.client_exceptions
|
||||||
import voluptuous as vol
|
|
||||||
|
|
||||||
from iaqualink import (
|
from iaqualink import (
|
||||||
AqualinkBinarySensor,
|
AqualinkBinarySensor,
|
||||||
AqualinkClient,
|
AqualinkClient,
|
||||||
@ -17,6 +15,7 @@ from iaqualink import (
|
|||||||
AqualinkThermostat,
|
AqualinkThermostat,
|
||||||
AqualinkToggle,
|
AqualinkToggle,
|
||||||
)
|
)
|
||||||
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
from homeassistant.components.binary_sensor import DOMAIN as BINARY_SENSOR_DOMAIN
|
from homeassistant.components.binary_sensor import DOMAIN as BINARY_SENSOR_DOMAIN
|
||||||
@ -29,18 +28,17 @@ from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
|||||||
from homeassistant.core import callback
|
from homeassistant.core import callback
|
||||||
from homeassistant.exceptions import ConfigEntryNotReady
|
from homeassistant.exceptions import ConfigEntryNotReady
|
||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.dispatcher import (
|
from homeassistant.helpers.dispatcher import (
|
||||||
async_dispatcher_connect,
|
async_dispatcher_connect,
|
||||||
async_dispatcher_send,
|
async_dispatcher_send,
|
||||||
)
|
)
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
from homeassistant.helpers.event import async_track_time_interval
|
from homeassistant.helpers.event import async_track_time_interval
|
||||||
import homeassistant.helpers.config_validation as cv
|
|
||||||
from homeassistant.helpers.typing import ConfigType, HomeAssistantType
|
from homeassistant.helpers.typing import ConfigType, HomeAssistantType
|
||||||
|
|
||||||
from .const import DOMAIN, UPDATE_INTERVAL
|
from .const import DOMAIN, UPDATE_INTERVAL
|
||||||
|
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
ATTR_CONFIG = "config"
|
ATTR_CONFIG = "config"
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from homeassistant.components.binary_sensor import (
|
from homeassistant.components.binary_sensor import (
|
||||||
BinarySensorDevice,
|
|
||||||
DEVICE_CLASS_COLD,
|
DEVICE_CLASS_COLD,
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
|
BinarySensorDevice,
|
||||||
)
|
)
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.helpers.typing import HomeAssistantType
|
from homeassistant.helpers.typing import HomeAssistantType
|
||||||
|
@ -22,7 +22,7 @@ from homeassistant.const import ATTR_TEMPERATURE, TEMP_CELSIUS, TEMP_FAHRENHEIT
|
|||||||
from homeassistant.helpers.typing import HomeAssistantType
|
from homeassistant.helpers.typing import HomeAssistantType
|
||||||
|
|
||||||
from . import AqualinkEntity, refresh_system
|
from . import AqualinkEntity, refresh_system
|
||||||
from .const import DOMAIN as AQUALINK_DOMAIN, CLIMATE_SUPPORTED_MODES
|
from .const import CLIMATE_SUPPORTED_MODES, DOMAIN as AQUALINK_DOMAIN
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
"""Config flow to configure zone component."""
|
"""Config flow to configure zone component."""
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
import voluptuous as vol
|
|
||||||
|
|
||||||
from iaqualink import AqualinkClient, AqualinkLoginException
|
from iaqualink import AqualinkClient, AqualinkLoginException
|
||||||
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||||
|
@ -5,6 +5,7 @@ import iaqualink
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from homeassistant.components.iaqualink import config_flow
|
from homeassistant.components.iaqualink import config_flow
|
||||||
|
|
||||||
from tests.common import MockConfigEntry, mock_coro
|
from tests.common import MockConfigEntry, mock_coro
|
||||||
|
|
||||||
DATA = {"username": "test@example.com", "password": "pass"}
|
DATA = {"username": "test@example.com", "password": "pass"}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user