Sort imports according to PEP8 for solarlog (#29752)

This commit is contained in:
Bas Nijholt 2019-12-09 13:11:37 +01:00 committed by Franck Nijhof
parent 3f469eac28
commit 127d84edd1
3 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
"""Constants for the Solar-Log integration."""
from datetime import timedelta
from homeassistant.const import POWER_WATT, ENERGY_KILO_WATT_HOUR
from homeassistant.const import ENERGY_KILO_WATT_HOUR, POWER_WATT
DOMAIN = "solarlog"

View file

@ -6,14 +6,14 @@ from requests.exceptions import HTTPError, Timeout
from sunwatcher.solarlog.solarlog import SolarLog
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.config_entries import SOURCE_IMPORT
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.config_entries import SOURCE_IMPORT
from homeassistant.const import CONF_HOST, CONF_NAME
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity
from homeassistant.util import Throttle
from .const import DOMAIN, DEFAULT_HOST, DEFAULT_NAME, SCAN_INTERVAL, SENSOR_TYPES
from .const import DEFAULT_HOST, DEFAULT_NAME, DOMAIN, SCAN_INTERVAL, SENSOR_TYPES
_LOGGER = logging.getLogger(__name__)

View file

@ -1,9 +1,9 @@
"""Test the solarlog config flow."""
from unittest.mock import patch
import pytest
from homeassistant import data_entry_flow
from homeassistant import config_entries, setup
from homeassistant import config_entries, data_entry_flow, setup
from homeassistant.components.solarlog import config_flow
from homeassistant.components.solarlog.const import DEFAULT_HOST, DOMAIN
from homeassistant.const import CONF_HOST, CONF_NAME