Sort imports according to PEP8 for emulated_hue (#29667)

This commit is contained in:
Bas Nijholt authored and Franck Nijhof committed 2019-12-09 12:12:41 +01:00
1 parent 05daa817f5
commit 27bd6ca1db
6 files changed
+33 -34

No files matched your search

+14 -15
View File
@@ -1,43 +1,42 @@
"""The tests for the emulated Hue component."""
import asyncio
import json
from datetime import timedelta
from ipaddress import ip_address
import json
from unittest.mock import patch
from aiohttp.hdrs import CONTENT_TYPE
import pytest
from tests.common import get_test_instance_port
from homeassistant import const, setup
from homeassistant.components import (
climate,
cover,
emulated_hue,
fan,
http,
light,
script,
emulated_hue,
media_player,
cover,
climate,
script,
)
from homeassistant.components.emulated_hue import Config
from homeassistant.components.emulated_hue.hue_api import (
HUE_API_STATE_ON,
HUE_API_STATE_BRI,
HUE_API_STATE_HUE,
HUE_API_STATE_ON,
HUE_API_STATE_SAT,
HUE_API_USERNAME,
HueUsernameView,
HueOneLightStateView,
HueAllLightsStateView,
HueOneLightChangeView,
HueAllGroupsStateView,
HueAllLightsStateView,
HueFullStateView,
HueOneLightChangeView,
HueOneLightStateView,
HueUsernameView,
)
from homeassistant.const import STATE_ON, STATE_OFF
from homeassistant.const import STATE_OFF, STATE_ON
import homeassistant.util.dt as dt_util
from datetime import timedelta
from tests.common import async_fire_time_changed
from tests.common import async_fire_time_changed, get_test_instance_port
HTTP_SERVER_PORT = get_test_instance_port()
BRIDGE_SERVER_PORT = get_test_instance_port()
+1 -1
View File
@@ -1,5 +1,5 @@
"""Test the Emulated Hue component."""
from unittest.mock import patch, Mock, MagicMock
from unittest.mock import MagicMock, Mock, patch
from homeassistant.components.emulated_hue import Config
+5 -5
View File
@@ -1,15 +1,15 @@
"""The tests for the emulated Hue component."""
import json
import unittest
from unittest.mock import patch
import requests
from aiohttp.hdrs import CONTENT_TYPE
from homeassistant import setup, const
from aiohttp.hdrs import CONTENT_TYPE
import requests
from homeassistant import const, setup
from homeassistant.components import emulated_hue, http
from tests.common import get_test_instance_port, get_test_home_assistant
from tests.common import get_test_home_assistant, get_test_instance_port
HTTP_SERVER_PORT = get_test_instance_port()
BRIDGE_SERVER_PORT = get_test_instance_port()