diff --git a/tests/components/qld_bushfire/test_geo_location.py b/tests/components/qld_bushfire/test_geo_location.py index 59de4643cb8..86ab16c5f1b 100644 --- a/tests/components/qld_bushfire/test_geo_location.py +++ b/tests/components/qld_bushfire/test_geo_location.py @@ -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 = { diff --git a/tests/components/qwikswitch/test_init.py b/tests/components/qwikswitch/test_init.py index e573e8cc293..d9c2a8d0ba6 100644 --- a/tests/components/qwikswitch/test_init.py +++ b/tests/components/qwikswitch/test_init.py @@ -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__)