Sort imports according to PEP8 for homekit_controller (#29646)
This commit is contained in:
parent
0d5de6a464
commit
d2c1e5d45c
5 changed files with 19 additions and 19 deletions
|
@ -1,28 +1,29 @@
|
|||
"""Code to support homekit_controller tests."""
|
||||
from datetime import timedelta
|
||||
import json
|
||||
import os
|
||||
from datetime import timedelta
|
||||
from unittest import mock
|
||||
|
||||
from homekit.model.services import AbstractService, ServicesTypes
|
||||
from homekit.exceptions import AccessoryNotFoundError
|
||||
from homekit.model import Accessory, get_id
|
||||
from homekit.model.characteristics import (
|
||||
AbstractCharacteristic,
|
||||
CharacteristicPermissions,
|
||||
CharacteristicsTypes,
|
||||
)
|
||||
from homekit.model import Accessory, get_id
|
||||
from homekit.exceptions import AccessoryNotFoundError
|
||||
from homekit.model.services import AbstractService, ServicesTypes
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components.homekit_controller import config_flow
|
||||
from homeassistant.components.homekit_controller.const import (
|
||||
CONTROLLER,
|
||||
DOMAIN,
|
||||
HOMEKIT_ACCESSORY_DISPATCH,
|
||||
)
|
||||
from homeassistant.components.homekit_controller import config_flow
|
||||
from homeassistant.setup import async_setup_component
|
||||
import homeassistant.util.dt as dt_util
|
||||
from tests.common import async_fire_time_changed, load_fixture, MockConfigEntry
|
||||
|
||||
from tests.common import MockConfigEntry, async_fire_time_changed, load_fixture
|
||||
|
||||
|
||||
class FakePairing:
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
"""Basic checks for HomeKitclimate."""
|
||||
from homeassistant.components.climate.const import (
|
||||
DOMAIN,
|
||||
SERVICE_SET_HVAC_MODE,
|
||||
SERVICE_SET_TEMPERATURE,
|
||||
HVAC_MODE_HEAT_COOL,
|
||||
HVAC_MODE_COOL,
|
||||
HVAC_MODE_HEAT,
|
||||
HVAC_MODE_HEAT_COOL,
|
||||
HVAC_MODE_OFF,
|
||||
SERVICE_SET_HUMIDITY,
|
||||
SERVICE_SET_HVAC_MODE,
|
||||
SERVICE_SET_TEMPERATURE,
|
||||
)
|
||||
from tests.components.homekit_controller.common import FakeService, setup_test_component
|
||||
|
||||
from tests.components.homekit_controller.common import FakeService, setup_test_component
|
||||
|
||||
HEATING_COOLING_TARGET = ("thermostat", "heating-cooling.target")
|
||||
HEATING_COOLING_CURRENT = ("thermostat", "heating-cooling.current")
|
||||
|
|
|
@ -7,6 +7,7 @@ import pytest
|
|||
|
||||
from homeassistant.components.homekit_controller import config_flow
|
||||
from homeassistant.components.homekit_controller.const import KNOWN_DEVICES
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
from tests.components.homekit_controller.common import (
|
||||
Accessory,
|
||||
|
@ -14,7 +15,6 @@ from tests.components.homekit_controller.common import (
|
|||
setup_platform,
|
||||
)
|
||||
|
||||
|
||||
PAIRING_START_FORM_ERRORS = [
|
||||
(homekit.BusyError, "busy_error"),
|
||||
(homekit.MaxTriesError, "max_tries_error"),
|
||||
|
|
|
@ -3,7 +3,6 @@ from homeassistant.components.homekit_controller.const import KNOWN_DEVICES
|
|||
|
||||
from tests.components.homekit_controller.common import FakeService, setup_test_component
|
||||
|
||||
|
||||
LIGHT_ON = ("lightbulb", "on")
|
||||
LIGHT_BRIGHTNESS = ("lightbulb", "brightness")
|
||||
LIGHT_HUE = ("lightbulb", "hue")
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
"""Basic checks for entity map storage."""
|
||||
from tests.common import flush_store
|
||||
from tests.components.homekit_controller.common import (
|
||||
FakeService,
|
||||
setup_test_component,
|
||||
setup_platform,
|
||||
)
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components.homekit_controller import async_remove_entry
|
||||
from homeassistant.components.homekit_controller.const import ENTITY_MAP
|
||||
|
||||
from tests.common import flush_store
|
||||
from tests.components.homekit_controller.common import (
|
||||
FakeService,
|
||||
setup_platform,
|
||||
setup_test_component,
|
||||
)
|
||||
|
||||
|
||||
async def test_load_from_storage(hass, hass_storage):
|
||||
"""Test that entity map can be correctly loaded from cache."""
|
||||
|
|
Loading…
Add table
Reference in a new issue