mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Sort imports according to PEP8 for specific_devices (#29687)
This commit is contained in:
parent
c54135486e
commit
776d8cfdc9
@ -5,10 +5,11 @@ https://github.com/home-assistant/home-assistant/issues/20957
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from homeassistant.components.light import SUPPORT_BRIGHTNESS, SUPPORT_COLOR
|
from homeassistant.components.light import SUPPORT_BRIGHTNESS, SUPPORT_COLOR
|
||||||
|
|
||||||
from tests.components.homekit_controller.common import (
|
from tests.components.homekit_controller.common import (
|
||||||
|
Helper,
|
||||||
setup_accessories_from_file,
|
setup_accessories_from_file,
|
||||||
setup_test_accessories,
|
setup_test_accessories,
|
||||||
Helper,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,19 +8,18 @@ from unittest import mock
|
|||||||
|
|
||||||
from homekit import AccessoryDisconnectedError
|
from homekit import AccessoryDisconnectedError
|
||||||
|
|
||||||
from homeassistant.config_entries import ENTRY_STATE_SETUP_RETRY
|
|
||||||
from homeassistant.components.climate.const import (
|
from homeassistant.components.climate.const import (
|
||||||
SUPPORT_TARGET_TEMPERATURE,
|
|
||||||
SUPPORT_TARGET_HUMIDITY,
|
SUPPORT_TARGET_HUMIDITY,
|
||||||
|
SUPPORT_TARGET_TEMPERATURE,
|
||||||
)
|
)
|
||||||
|
from homeassistant.config_entries import ENTRY_STATE_SETUP_RETRY
|
||||||
|
|
||||||
from tests.components.homekit_controller.common import (
|
from tests.components.homekit_controller.common import (
|
||||||
FakePairing,
|
FakePairing,
|
||||||
|
Helper,
|
||||||
device_config_changed,
|
device_config_changed,
|
||||||
setup_accessories_from_file,
|
setup_accessories_from_file,
|
||||||
setup_test_accessories,
|
setup_test_accessories,
|
||||||
Helper,
|
|
||||||
time_changed,
|
time_changed,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
"""Tests for handling accessories on a Hue bridge via HomeKit."""
|
"""Tests for handling accessories on a Hue bridge via HomeKit."""
|
||||||
|
|
||||||
from tests.components.homekit_controller.common import (
|
from tests.components.homekit_controller.common import (
|
||||||
|
Helper,
|
||||||
setup_accessories_from_file,
|
setup_accessories_from_file,
|
||||||
setup_test_accessories,
|
setup_test_accessories,
|
||||||
Helper,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,17 +3,18 @@
|
|||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
|
||||||
|
from homekit.exceptions import AccessoryDisconnectedError, EncryptionError
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from homekit.exceptions import AccessoryDisconnectedError, EncryptionError
|
|
||||||
import homeassistant.util.dt as dt_util
|
|
||||||
from homeassistant.components.light import SUPPORT_BRIGHTNESS, SUPPORT_COLOR
|
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.common import async_fire_time_changed
|
||||||
from tests.components.homekit_controller.common import (
|
from tests.components.homekit_controller.common import (
|
||||||
setup_accessories_from_file,
|
|
||||||
setup_test_accessories,
|
|
||||||
FakePairing,
|
FakePairing,
|
||||||
Helper,
|
Helper,
|
||||||
|
setup_accessories_from_file,
|
||||||
|
setup_test_accessories,
|
||||||
)
|
)
|
||||||
|
|
||||||
LIGHT_ON = ("lightbulb", "on")
|
LIGHT_ON = ("lightbulb", "on")
|
||||||
|
@ -5,10 +5,11 @@ https://github.com/home-assistant/home-assistant/issues/20885
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from homeassistant.components.climate.const import SUPPORT_TARGET_TEMPERATURE
|
from homeassistant.components.climate.const import SUPPORT_TARGET_TEMPERATURE
|
||||||
|
|
||||||
from tests.components.homekit_controller.common import (
|
from tests.components.homekit_controller.common import (
|
||||||
|
Helper,
|
||||||
setup_accessories_from_file,
|
setup_accessories_from_file,
|
||||||
setup_test_accessories,
|
setup_test_accessories,
|
||||||
Helper,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user