diff --git a/homeassistant/components/met/__init__.py b/homeassistant/components/met/__init__.py index 305038c3e6a..7ef3c5f8796 100644 --- a/homeassistant/components/met/__init__.py +++ b/homeassistant/components/met/__init__.py @@ -1,5 +1,6 @@ """The met component.""" from homeassistant.core import Config, HomeAssistant + from .config_flow import MetFlowHandler # noqa: F401 from .const import DOMAIN # noqa: F401 diff --git a/homeassistant/components/met/config_flow.py b/homeassistant/components/met/config_flow.py index c7ff4973c7d..759f7f6fc89 100644 --- a/homeassistant/components/met/config_flow.py +++ b/homeassistant/components/met/config_flow.py @@ -6,7 +6,7 @@ from homeassistant.const import CONF_ELEVATION, CONF_LATITUDE, CONF_LONGITUDE, C from homeassistant.core import callback import homeassistant.helpers.config_validation as cv -from .const import DOMAIN, HOME_LOCATION_NAME, CONF_TRACK_HOME +from .const import CONF_TRACK_HOME, DOMAIN, HOME_LOCATION_NAME @callback diff --git a/homeassistant/components/met/weather.py b/homeassistant/components/met/weather.py index 2f9ddc5a67c..d99573a985e 100644 --- a/homeassistant/components/met/weather.py +++ b/homeassistant/components/met/weather.py @@ -5,16 +5,16 @@ from random import randrange import metno import voluptuous as vol -from homeassistant.core import callback from homeassistant.components.weather import PLATFORM_SCHEMA, WeatherEntity from homeassistant.const import ( CONF_ELEVATION, CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME, - TEMP_CELSIUS, EVENT_CORE_CONFIG_UPDATE, + TEMP_CELSIUS, ) +from homeassistant.core import callback from homeassistant.helpers import config_validation as cv from homeassistant.helpers.aiohttp_client import async_get_clientsession from homeassistant.helpers.event import async_call_later diff --git a/tests/components/met/test_config_flow.py b/tests/components/met/test_config_flow.py index 32f3be676e0..73c6c819817 100644 --- a/tests/components/met/test_config_flow.py +++ b/tests/components/met/test_config_flow.py @@ -1,10 +1,10 @@ """Tests for Met.no config flow.""" from unittest.mock import Mock, patch -from tests.common import MockConfigEntry, mock_coro - -from homeassistant.const import CONF_ELEVATION, CONF_LATITUDE, CONF_LONGITUDE from homeassistant.components.met import config_flow +from homeassistant.const import CONF_ELEVATION, CONF_LATITUDE, CONF_LONGITUDE + +from tests.common import MockConfigEntry, mock_coro async def test_show_config_form():