sort imports according to PEP8 for yweather (#29608)

This commit is contained in:
Bas Nijholt 2019-12-08 13:50:02 +01:00 committed by Franck Nijhof
parent 74c0219d0c
commit 09ff0a5ac6
2 changed files with 3 additions and 5 deletions

View File

@ -1,12 +1,11 @@
"""The tests for the Yahoo weather sensor component.""" """The tests for the Yahoo weather sensor component."""
import json import json
import unittest import unittest
from unittest.mock import patch from unittest.mock import patch
from homeassistant.setup import setup_component from homeassistant.setup import setup_component
from tests.common import get_test_home_assistant, load_fixture, MockDependency from tests.common import MockDependency, get_test_home_assistant, load_fixture
VALID_CONFIG_MINIMAL = { VALID_CONFIG_MINIMAL = {
"sensor": {"platform": "yweather", "monitored_conditions": ["weather"]} "sensor": {"platform": "yweather", "monitored_conditions": ["weather"]}

View File

@ -1,6 +1,5 @@
"""The tests for the Yahoo weather component.""" """The tests for the Yahoo weather component."""
import json import json
import unittest import unittest
from unittest.mock import patch from unittest.mock import patch
@ -11,10 +10,10 @@ from homeassistant.components.weather import (
ATTR_WEATHER_WIND_BEARING, ATTR_WEATHER_WIND_BEARING,
ATTR_WEATHER_WIND_SPEED, ATTR_WEATHER_WIND_SPEED,
) )
from homeassistant.util.unit_system import METRIC_SYSTEM
from homeassistant.setup import setup_component from homeassistant.setup import setup_component
from homeassistant.util.unit_system import METRIC_SYSTEM
from tests.common import get_test_home_assistant, load_fixture, MockDependency from tests.common import MockDependency, get_test_home_assistant, load_fixture
def _yql_queryMock(yql): # pylint: disable=invalid-name def _yql_queryMock(yql): # pylint: disable=invalid-name