Sort imports according to PEP8 for unifi (#29656)
This commit is contained in:
1 parent
3b0f29fe95
commit
2da3848f89
11 files changed
+19
-31
No files matched your search
@@ -1,10 +1,10 @@
|
||||
"""Test UniFi config flow."""
|
||||
import aiounifi
|
||||
from asynctest import patch
|
||||
|
||||
from homeassistant.components import unifi
|
||||
from homeassistant.components.unifi import config_flow
|
||||
from homeassistant.components.unifi.const import CONF_CONTROLLER, CONF_SITE_ID
|
||||
|
||||
from homeassistant.const import (
|
||||
CONF_HOST,
|
||||
CONF_PASSWORD,
|
||||
@@ -15,8 +15,6 @@ from homeassistant.const import (
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
import aiounifi
|
||||
|
||||
|
||||
async def test_flow_works(hass, aioclient_mock):
|
||||
"""Test config flow."""
|
||||
|
||||
@@ -2,12 +2,11 @@
|
||||
from collections import deque
|
||||
from datetime import timedelta
|
||||
|
||||
import aiounifi
|
||||
from asynctest import Mock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.exceptions import ConfigEntryNotReady
|
||||
from homeassistant.components import unifi
|
||||
from homeassistant.components.unifi.const import (
|
||||
CONF_CONTROLLER,
|
||||
@@ -22,7 +21,7 @@ from homeassistant.const import (
|
||||
CONF_USERNAME,
|
||||
CONF_VERIFY_SSL,
|
||||
)
|
||||
import aiounifi
|
||||
from homeassistant.exceptions import ConfigEntryNotReady
|
||||
|
||||
CONTROLLER_HOST = {
|
||||
"hostname": "controller_host",
|
||||
|
||||
@@ -4,6 +4,7 @@ from datetime import timedelta
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components import unifi
|
||||
import homeassistant.components.device_tracker as device_tracker
|
||||
from homeassistant.components.unifi.const import (
|
||||
CONF_SSID_FILTER,
|
||||
CONF_TRACK_DEVICES,
|
||||
@@ -12,8 +13,6 @@ from homeassistant.components.unifi.const import (
|
||||
from homeassistant.const import STATE_UNAVAILABLE
|
||||
from homeassistant.helpers import entity_registry
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
import homeassistant.components.device_tracker as device_tracker
|
||||
import homeassistant.util.dt as dt_util
|
||||
|
||||
from .test_controller import ENTRY_CONFIG, SITES, setup_unifi_integration
|
||||
|
||||
@@ -2,11 +2,9 @@
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
from homeassistant.components import unifi
|
||||
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
|
||||
from tests.common import mock_coro, MockConfigEntry
|
||||
from tests.common import MockConfigEntry, mock_coro
|
||||
|
||||
|
||||
async def test_setup_with_no_config(hass):
|
||||
|
||||
@@ -2,9 +2,8 @@
|
||||
from copy import deepcopy
|
||||
|
||||
from homeassistant.components import unifi
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
import homeassistant.components.sensor as sensor
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from .test_controller import ENTRY_CONFIG, SITES, setup_unifi_integration
|
||||
|
||||
|
||||
@@ -3,11 +3,10 @@ from copy import deepcopy
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components import unifi
|
||||
import homeassistant.components.switch as switch
|
||||
from homeassistant.helpers import entity_registry
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
import homeassistant.components.switch as switch
|
||||
|
||||
from .test_controller import (
|
||||
CONTROLLER_HOST,
|
||||
ENTRY_CONFIG,
|
||||
|
||||
Reference in new issue
Block a user