mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +00:00
Sort imports according to PEP8 for met (#29699)
This commit is contained in:
parent
c7b2c09a61
commit
642655b6d7
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user