Sort imports according to PEP8 for specific_devices (#29687)

pull/29761/head
Bas Nijholt 2019-12-09 11:51:36 +01:00 committed by Franck Nijhof
parent c54135486e
commit 776d8cfdc9
5 changed files with 13 additions and 11 deletions

View File

@ -5,10 +5,11 @@ https://github.com/home-assistant/home-assistant/issues/20957
"""
from homeassistant.components.light import SUPPORT_BRIGHTNESS, SUPPORT_COLOR
from tests.components.homekit_controller.common import (
Helper,
setup_accessories_from_file,
setup_test_accessories,
Helper,
)

View File

@ -8,19 +8,18 @@ from unittest import mock
from homekit import AccessoryDisconnectedError
from homeassistant.config_entries import ENTRY_STATE_SETUP_RETRY
from homeassistant.components.climate.const import (
SUPPORT_TARGET_TEMPERATURE,
SUPPORT_TARGET_HUMIDITY,
SUPPORT_TARGET_TEMPERATURE,
)
from homeassistant.config_entries import ENTRY_STATE_SETUP_RETRY
from tests.components.homekit_controller.common import (
FakePairing,
Helper,
device_config_changed,
setup_accessories_from_file,
setup_test_accessories,
Helper,
time_changed,
)

View File

@ -1,9 +1,9 @@
"""Tests for handling accessories on a Hue bridge via HomeKit."""
from tests.components.homekit_controller.common import (
Helper,
setup_accessories_from_file,
setup_test_accessories,
Helper,
)

View File

@ -3,17 +3,18 @@
from datetime import timedelta
from unittest import mock
from homekit.exceptions import AccessoryDisconnectedError, EncryptionError
import pytest
from homekit.exceptions import AccessoryDisconnectedError, EncryptionError
import homeassistant.util.dt as dt_util
from homeassistant.components.light import SUPPORT_BRIGHTNESS, SUPPORT_COLOR
import homeassistant.util.dt as dt_util
from tests.common import async_fire_time_changed
from tests.components.homekit_controller.common import (
setup_accessories_from_file,
setup_test_accessories,
FakePairing,
Helper,
setup_accessories_from_file,
setup_test_accessories,
)
LIGHT_ON = ("lightbulb", "on")

View File

@ -5,10 +5,11 @@ https://github.com/home-assistant/home-assistant/issues/20885
"""
from homeassistant.components.climate.const import SUPPORT_TARGET_TEMPERATURE
from tests.components.homekit_controller.common import (
Helper,
setup_accessories_from_file,
setup_test_accessories,
Helper,
)