Sort imports according to PEP8 for device_tracker (#29666)
This commit is contained in:
1 parent
27bd6ca1db
commit
01d651c67d
7 files changed
+34
-33
No files matched your search
@@ -4,15 +4,15 @@ All containing methods are legacy helpers that should not be used by new
|
||||
components. Instead call the service directly.
|
||||
"""
|
||||
from homeassistant.components.device_tracker import (
|
||||
DOMAIN,
|
||||
ATTR_ATTRIBUTES,
|
||||
ATTR_BATTERY,
|
||||
ATTR_DEV_ID,
|
||||
ATTR_GPS,
|
||||
ATTR_GPS_ACCURACY,
|
||||
ATTR_HOST_NAME,
|
||||
ATTR_LOCATION_NAME,
|
||||
ATTR_MAC,
|
||||
ATTR_DEV_ID,
|
||||
ATTR_HOST_NAME,
|
||||
DOMAIN,
|
||||
SERVICE_SEE,
|
||||
)
|
||||
from homeassistant.core import callback
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
"""The tests for Device tracker device conditions."""
|
||||
import pytest
|
||||
|
||||
import homeassistant.components.automation as automation
|
||||
from homeassistant.components.device_tracker import DOMAIN
|
||||
from homeassistant.const import STATE_HOME, STATE_NOT_HOME
|
||||
from homeassistant.setup import async_setup_component
|
||||
import homeassistant.components.automation as automation
|
||||
from homeassistant.helpers import device_registry
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from tests.common import (
|
||||
MockConfigEntry,
|
||||
assert_lists_same,
|
||||
async_get_device_automations,
|
||||
async_mock_service,
|
||||
mock_device_registry,
|
||||
mock_registry,
|
||||
async_get_device_automations,
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -6,11 +6,12 @@ from homeassistant.components.device_tracker.config_entry import (
|
||||
ScannerEntity,
|
||||
)
|
||||
from homeassistant.components.device_tracker.const import (
|
||||
SOURCE_TYPE_ROUTER,
|
||||
ATTR_SOURCE_TYPE,
|
||||
DOMAIN,
|
||||
SOURCE_TYPE_ROUTER,
|
||||
)
|
||||
from homeassistant.const import STATE_HOME, STATE_NOT_HOME, ATTR_BATTERY_LEVEL
|
||||
from homeassistant.const import ATTR_BATTERY_LEVEL, STATE_HOME, STATE_NOT_HOME
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user