Sort imports according to PEP8 for components starting with "U" (#29779)
* use isort to sort imports for components starting with 'u' * add 'pylint: disable=import-error' to the right place
This commit is contained in:
1 parent
80c344d3a8
commit
e37443f10c
13 files changed
+55
-56
No files matched your search
@@ -1,29 +1,29 @@
|
||||
"""The tests for the Unifi direct device tracker platform."""
|
||||
import os
|
||||
from datetime import timedelta
|
||||
from asynctest import mock, patch
|
||||
import os
|
||||
|
||||
from asynctest import mock, patch
|
||||
import pytest
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.setup import async_setup_component
|
||||
from homeassistant.components.device_tracker.legacy import YAML_DEVICES
|
||||
from homeassistant.components.device_tracker import (
|
||||
CONF_CONSIDER_HOME,
|
||||
CONF_TRACK_NEW,
|
||||
CONF_AWAY_HIDE,
|
||||
CONF_CONSIDER_HOME,
|
||||
CONF_NEW_DEVICE_DEFAULTS,
|
||||
CONF_TRACK_NEW,
|
||||
)
|
||||
from homeassistant.components.device_tracker.legacy import YAML_DEVICES
|
||||
from homeassistant.components.unifi_direct.device_tracker import (
|
||||
DOMAIN,
|
||||
CONF_PORT,
|
||||
DOMAIN,
|
||||
PLATFORM_SCHEMA,
|
||||
_response_to_json,
|
||||
get_scanner,
|
||||
)
|
||||
from homeassistant.const import CONF_PLATFORM, CONF_PASSWORD, CONF_USERNAME, CONF_HOST
|
||||
from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_PLATFORM, CONF_USERNAME
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from tests.common import assert_setup_component, mock_component, load_fixture
|
||||
from tests.common import assert_setup_component, load_fixture, mock_component
|
||||
|
||||
scanner_path = (
|
||||
"homeassistant.components.unifi_direct.device_tracker." + "UnifiDeviceScanner"
|
||||
|
||||
Reference in new issue
Block a user