Sort imports according to PEP8 for linky (#29722)

This commit is contained in:
Bas Nijholt 2019-12-09 11:07:50 +01:00 committed by Franck Nijhof
parent cbf59fb33d
commit 6a67532a2d
3 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,6 @@
"""Config flow to configure the Linky integration.""" """Config flow to configure the Linky integration."""
import logging import logging
import voluptuous as vol
from pylinky.client import LinkyClient from pylinky.client import LinkyClient
from pylinky.exceptions import ( from pylinky.exceptions import (
PyLinkyAccessException, PyLinkyAccessException,
@ -9,6 +8,7 @@ from pylinky.exceptions import (
PyLinkyException, PyLinkyException,
PyLinkyWrongLoginException, PyLinkyWrongLoginException,
) )
import voluptuous as vol
from homeassistant import config_entries from homeassistant import config_entries
from homeassistant.const import CONF_PASSWORD, CONF_TIMEOUT, CONF_USERNAME from homeassistant.const import CONF_PASSWORD, CONF_TIMEOUT, CONF_USERNAME

View File

@ -1,10 +1,9 @@
"""Support for Linky.""" """Support for Linky."""
from datetime import timedelta
import json import json
import logging import logging
from datetime import timedelta
from pylinky.client import DAILY, MONTHLY, YEARLY, LinkyClient from pylinky.client import DAILY, MONTHLY, YEARLY, LinkyClient, PyLinkyException
from pylinky.client import PyLinkyException
from homeassistant.config_entries import ConfigEntry from homeassistant.config_entries import ConfigEntry
from homeassistant.const import ( from homeassistant.const import (

View File

@ -1,16 +1,17 @@
"""Tests for the Linky config flow.""" """Tests for the Linky config flow."""
import pytest
from unittest.mock import patch from unittest.mock import patch
from pylinky.exceptions import ( from pylinky.exceptions import (
PyLinkyAccessException, PyLinkyAccessException,
PyLinkyEnedisException, PyLinkyEnedisException,
PyLinkyException, PyLinkyException,
PyLinkyWrongLoginException, PyLinkyWrongLoginException,
) )
import pytest
from homeassistant import data_entry_flow from homeassistant import data_entry_flow
from homeassistant.components.linky import config_flow from homeassistant.components.linky import config_flow
from homeassistant.components.linky.const import DOMAIN, DEFAULT_TIMEOUT from homeassistant.components.linky.const import DEFAULT_TIMEOUT, DOMAIN
from homeassistant.const import CONF_PASSWORD, CONF_TIMEOUT, CONF_USERNAME from homeassistant.const import CONF_PASSWORD, CONF_TIMEOUT, CONF_USERNAME
from tests.common import MockConfigEntry from tests.common import MockConfigEntry