Sort imports according to PEP8 for met (#29699)

This commit is contained in:
Bas Nijholt 2019-12-09 11:43:00 +01:00 committed by Franck Nijhof
parent c7b2c09a61
commit 642655b6d7
4 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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():