Sort imports according to PEP8 for 'tests' (#29791)
This commit is contained in:
parent
67c56c860d
commit
f60125b5c9
68 changed files with 254 additions and 251 deletions
|
@ -1,32 +1,32 @@
|
|||
"""Test the helper method for writing tests."""
|
||||
import asyncio
|
||||
import collections
|
||||
import functools as ft
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import uuid
|
||||
import sys
|
||||
import threading
|
||||
|
||||
from collections import OrderedDict
|
||||
from contextlib import contextmanager
|
||||
from datetime import timedelta
|
||||
import functools as ft
|
||||
from io import StringIO
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import threading
|
||||
from unittest.mock import MagicMock, Mock, patch
|
||||
|
||||
import homeassistant.util.dt as date_util
|
||||
import homeassistant.util.yaml.loader as yaml_loader
|
||||
import uuid
|
||||
|
||||
from homeassistant import auth, config_entries, core as ha, loader
|
||||
from homeassistant.auth import (
|
||||
models as auth_models,
|
||||
auth_store,
|
||||
providers as auth_providers,
|
||||
models as auth_models,
|
||||
permissions as auth_permissions,
|
||||
providers as auth_providers,
|
||||
)
|
||||
from homeassistant.auth.permissions import system_policies
|
||||
from homeassistant.components import mqtt, recorder
|
||||
from homeassistant.components.device_automation import ( # noqa: F401
|
||||
_async_get_device_automation_capabilities as async_get_device_automation_capabilities,
|
||||
_async_get_device_automations as async_get_device_automations,
|
||||
)
|
||||
from homeassistant.components.mqtt.models import Message
|
||||
from homeassistant.config import async_process_component_config
|
||||
from homeassistant.const import (
|
||||
|
@ -38,8 +38,8 @@ from homeassistant.const import (
|
|||
EVENT_STATE_CHANGED,
|
||||
EVENT_TIME_CHANGED,
|
||||
SERVER_PORT,
|
||||
STATE_ON,
|
||||
STATE_OFF,
|
||||
STATE_ON,
|
||||
)
|
||||
from homeassistant.core import State
|
||||
from homeassistant.helpers import (
|
||||
|
@ -54,12 +54,10 @@ from homeassistant.helpers import (
|
|||
)
|
||||
from homeassistant.helpers.json import JSONEncoder
|
||||
from homeassistant.setup import async_setup_component, setup_component
|
||||
from homeassistant.util.unit_system import METRIC_SYSTEM
|
||||
from homeassistant.util.async_ import run_callback_threadsafe
|
||||
from homeassistant.components.device_automation import ( # noqa: F401
|
||||
_async_get_device_automations as async_get_device_automations,
|
||||
_async_get_device_automation_capabilities as async_get_device_automation_capabilities,
|
||||
)
|
||||
import homeassistant.util.dt as date_util
|
||||
from homeassistant.util.unit_system import METRIC_SYSTEM
|
||||
import homeassistant.util.yaml.loader as yaml_loader
|
||||
|
||||
_TEST_INSTANCE_PORT = SERVER_PORT
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue