Sort imports according to PEP8 for components starting with "Q" (#29785)

This commit is contained in:
Bas Nijholt 2019-12-09 14:56:20 +01:00 committed by Franck Nijhof
parent fbf1836997
commit 4035fda659
2 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,6 @@
"""The tests for the Queensland Bushfire Alert Feed platform."""
import datetime
from unittest.mock import patch, MagicMock, call
from unittest.mock import MagicMock, call, patch
from homeassistant.components import geo_location
from homeassistant.components.geo_location import ATTR_SOURCE
@ -25,9 +25,10 @@ from homeassistant.const import (
EVENT_HOMEASSISTANT_START,
)
from homeassistant.setup import async_setup_component
from tests.common import assert_setup_component, async_fire_time_changed
import homeassistant.util.dt as dt_util
from tests.common import assert_setup_component, async_fire_time_changed
CONFIG = {geo_location.DOMAIN: [{"platform": "qld_bushfire", CONF_RADIUS: 200}]}
CONFIG_WITH_CUSTOM_LOCATION = {

View File

@ -1,14 +1,14 @@
"""Test qwikswitch sensors."""
import logging
from aiohttp.client_exceptions import ClientError
import pytest
from homeassistant.const import EVENT_HOMEASSISTANT_START
from homeassistant.components.qwikswitch import DOMAIN as QWIKSWITCH
from homeassistant.bootstrap import async_setup_component
from tests.test_util.aiohttp import mock_aiohttp_client
from aiohttp.client_exceptions import ClientError
from homeassistant.components.qwikswitch import DOMAIN as QWIKSWITCH
from homeassistant.const import EVENT_HOMEASSISTANT_START
from tests.test_util.aiohttp import mock_aiohttp_client
_LOGGER = logging.getLogger(__name__)