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."""
|
"""Axis network device abstraction."""
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import async_timeout
|
|
||||||
|
|
||||||
|
import async_timeout
|
||||||
import axis
|
import axis
|
||||||
from axis.streammanager import SIGNAL_PLAYING
|
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 homeassistant.helpers.dispatcher import async_dispatcher_send
|
||||||
|
|
||||||
from .const import CONF_CAMERA, CONF_EVENTS, CONF_MODEL, DOMAIN, LOGGER
|
from .const import CONF_CAMERA, CONF_EVENTS, CONF_MODEL, DOMAIN, LOGGER
|
||||||
|
|
||||||
from .errors import AuthenticationRequired, CannotConnect
|
from .errors import AuthenticationRequired, CannotConnect
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,8 @@ from unittest.mock import Mock
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
from homeassistant.components import axis
|
from homeassistant.components import axis
|
||||||
from homeassistant.setup import async_setup_component
|
|
||||||
|
|
||||||
import homeassistant.components.binary_sensor as binary_sensor
|
import homeassistant.components.binary_sensor as binary_sensor
|
||||||
|
from homeassistant.setup import async_setup_component
|
||||||
|
|
||||||
EVENTS = [
|
EVENTS = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,10 +4,8 @@ from unittest.mock import Mock
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
from homeassistant.components import axis
|
from homeassistant.components import axis
|
||||||
from homeassistant.setup import async_setup_component
|
|
||||||
|
|
||||||
import homeassistant.components.camera as camera
|
import homeassistant.components.camera as camera
|
||||||
|
from homeassistant.setup import async_setup_component
|
||||||
|
|
||||||
ENTRY_CONFIG = {
|
ENTRY_CONFIG = {
|
||||||
axis.CONF_DEVICE: {
|
axis.CONF_DEVICE: {
|
||||||
|
|
|
@ -4,7 +4,7 @@ from unittest.mock import Mock, patch
|
||||||
from homeassistant.components import axis
|
from homeassistant.components import axis
|
||||||
from homeassistant.components.axis import config_flow
|
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):
|
async def test_configured_devices(hass):
|
||||||
|
|
|
@ -3,11 +3,11 @@ from unittest.mock import Mock, patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from tests.common import mock_coro, MockConfigEntry
|
|
||||||
|
|
||||||
from homeassistant.components.axis import device, errors
|
from homeassistant.components.axis import device, errors
|
||||||
from homeassistant.components.axis.camera import AxisCamera
|
from homeassistant.components.axis.camera import AxisCamera
|
||||||
|
|
||||||
|
from tests.common import MockConfigEntry, mock_coro
|
||||||
|
|
||||||
DEVICE_DATA = {
|
DEVICE_DATA = {
|
||||||
device.CONF_HOST: "1.2.3.4",
|
device.CONF_HOST: "1.2.3.4",
|
||||||
device.CONF_USERNAME: "username",
|
device.CONF_USERNAME: "username",
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
"""Test Axis component setup process."""
|
"""Test Axis component setup process."""
|
||||||
from unittest.mock import Mock, patch
|
from unittest.mock import Mock, patch
|
||||||
|
|
||||||
from homeassistant.setup import async_setup_component
|
|
||||||
from homeassistant.components import axis
|
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):
|
async def test_setup(hass):
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
"""Axis switch platform tests."""
|
"""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 import config_entries
|
||||||
from homeassistant.components import axis
|
from homeassistant.components import axis
|
||||||
from homeassistant.setup import async_setup_component
|
|
||||||
|
|
||||||
import homeassistant.components.switch as switch
|
import homeassistant.components.switch as switch
|
||||||
|
from homeassistant.setup import async_setup_component
|
||||||
|
|
||||||
EVENTS = [
|
EVENTS = [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue