sort imports according to PEP8 for axis (#29621)
This commit is contained in:
parent
c4794572d4
commit
b0d0060643
7 changed files with 10 additions and 15 deletions
|
@ -1,8 +1,8 @@
|
|||
"""Axis network device abstraction."""
|
||||
|
||||
import asyncio
|
||||
import async_timeout
|
||||
|
||||
import async_timeout
|
||||
import axis
|
||||
from axis.streammanager import SIGNAL_PLAYING
|
||||
|
||||
|
@ -21,7 +21,6 @@ from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC
|
|||
from homeassistant.helpers.dispatcher import async_dispatcher_send
|
||||
|
||||
from .const import CONF_CAMERA, CONF_EVENTS, CONF_MODEL, DOMAIN, LOGGER
|
||||
|
||||
from .errors import AuthenticationRequired, CannotConnect
|
||||
|
||||
|
||||
|
|
|
@ -4,9 +4,8 @@ from unittest.mock import Mock
|
|||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components import axis
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
import homeassistant.components.binary_sensor as binary_sensor
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
EVENTS = [
|
||||
{
|
||||
|
|
|
@ -4,10 +4,8 @@ from unittest.mock import Mock
|
|||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components import axis
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
import homeassistant.components.camera as camera
|
||||
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
ENTRY_CONFIG = {
|
||||
axis.CONF_DEVICE: {
|
||||
|
|
|
@ -4,7 +4,7 @@ from unittest.mock import Mock, patch
|
|||
from homeassistant.components import axis
|
||||
from homeassistant.components.axis import config_flow
|
||||
|
||||
from tests.common import mock_coro, MockConfigEntry
|
||||
from tests.common import MockConfigEntry, mock_coro
|
||||
|
||||
|
||||
async def test_configured_devices(hass):
|
||||
|
|
|
@ -3,11 +3,11 @@ from unittest.mock import Mock, patch
|
|||
|
||||
import pytest
|
||||
|
||||
from tests.common import mock_coro, MockConfigEntry
|
||||
|
||||
from homeassistant.components.axis import device, errors
|
||||
from homeassistant.components.axis.camera import AxisCamera
|
||||
|
||||
from tests.common import MockConfigEntry, mock_coro
|
||||
|
||||
DEVICE_DATA = {
|
||||
device.CONF_HOST: "1.2.3.4",
|
||||
device.CONF_USERNAME: "username",
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
"""Test Axis component setup process."""
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
from homeassistant.setup import async_setup_component
|
||||
from homeassistant.components import axis
|
||||
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(hass):
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
"""Axis switch platform tests."""
|
||||
|
||||
from unittest.mock import call as mock_call, Mock
|
||||
from unittest.mock import Mock, call as mock_call
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components import axis
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
import homeassistant.components.switch as switch
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
EVENTS = [
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue