mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Sort imports according to PEP8 for ambiclimate (#29689)
This commit is contained in:
parent
bfa58f671a
commit
0b4ca9ecac
@ -4,10 +4,10 @@ import logging
|
|||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.helpers import config_validation as cv
|
from homeassistant.helpers import config_validation as cv
|
||||||
|
|
||||||
from . import config_flow
|
from . import config_flow
|
||||||
from .const import CONF_CLIENT_ID, CONF_CLIENT_SECRET, DOMAIN
|
from .const import CONF_CLIENT_ID, CONF_CLIENT_SECRET, DOMAIN
|
||||||
|
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
CONFIG_SCHEMA = vol.Schema(
|
CONFIG_SCHEMA = vol.Schema(
|
||||||
|
@ -7,13 +7,14 @@ import voluptuous as vol
|
|||||||
|
|
||||||
from homeassistant.components.climate import ClimateDevice
|
from homeassistant.components.climate import ClimateDevice
|
||||||
from homeassistant.components.climate.const import (
|
from homeassistant.components.climate.const import (
|
||||||
SUPPORT_TARGET_TEMPERATURE,
|
|
||||||
HVAC_MODE_OFF,
|
|
||||||
HVAC_MODE_HEAT,
|
HVAC_MODE_HEAT,
|
||||||
|
HVAC_MODE_OFF,
|
||||||
|
SUPPORT_TARGET_TEMPERATURE,
|
||||||
)
|
)
|
||||||
from homeassistant.const import ATTR_NAME, ATTR_TEMPERATURE, TEMP_CELSIUS
|
from homeassistant.const import ATTR_NAME, ATTR_TEMPERATURE, TEMP_CELSIUS
|
||||||
from homeassistant.helpers import config_validation as cv
|
from homeassistant.helpers import config_validation as cv
|
||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
|
|
||||||
from .const import (
|
from .const import (
|
||||||
ATTR_VALUE,
|
ATTR_VALUE,
|
||||||
CONF_CLIENT_ID,
|
CONF_CLIENT_ID,
|
||||||
|
@ -7,14 +7,15 @@ from homeassistant import config_entries
|
|||||||
from homeassistant.components.http import HomeAssistantView
|
from homeassistant.components.http import HomeAssistantView
|
||||||
from homeassistant.core import callback
|
from homeassistant.core import callback
|
||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
|
|
||||||
from .const import (
|
from .const import (
|
||||||
AUTH_CALLBACK_NAME,
|
AUTH_CALLBACK_NAME,
|
||||||
AUTH_CALLBACK_PATH,
|
AUTH_CALLBACK_PATH,
|
||||||
CONF_CLIENT_ID,
|
CONF_CLIENT_ID,
|
||||||
CONF_CLIENT_SECRET,
|
CONF_CLIENT_SECRET,
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
STORAGE_VERSION,
|
|
||||||
STORAGE_KEY,
|
STORAGE_KEY,
|
||||||
|
STORAGE_VERSION,
|
||||||
)
|
)
|
||||||
|
|
||||||
DATA_AMBICLIMATE_IMPL = "ambiclimate_flow_implementation"
|
DATA_AMBICLIMATE_IMPL = "ambiclimate_flow_implementation"
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
"""Tests for the Ambiclimate config flow."""
|
"""Tests for the Ambiclimate config flow."""
|
||||||
import ambiclimate
|
|
||||||
from unittest.mock import Mock, patch
|
from unittest.mock import Mock, patch
|
||||||
|
|
||||||
|
import ambiclimate
|
||||||
|
|
||||||
|
from homeassistant import data_entry_flow
|
||||||
from homeassistant.components.ambiclimate import config_flow
|
from homeassistant.components.ambiclimate import config_flow
|
||||||
from homeassistant.setup import async_setup_component
|
from homeassistant.setup import async_setup_component
|
||||||
from homeassistant.util import aiohttp
|
from homeassistant.util import aiohttp
|
||||||
from homeassistant import data_entry_flow
|
|
||||||
from tests.common import mock_coro
|
from tests.common import mock_coro
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user