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."""
import logging
import voluptuous as vol
from pylinky.client import LinkyClient
from pylinky.exceptions import (
PyLinkyAccessException,
@ -9,6 +8,7 @@ from pylinky.exceptions import (
PyLinkyException,
PyLinkyWrongLoginException,
)
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.const import CONF_PASSWORD, CONF_TIMEOUT, CONF_USERNAME

View file

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

View file

@ -1,16 +1,17 @@
"""Tests for the Linky config flow."""
import pytest
from unittest.mock import patch
from pylinky.exceptions import (
PyLinkyAccessException,
PyLinkyEnedisException,
PyLinkyException,
PyLinkyWrongLoginException,
)
import pytest
from homeassistant import data_entry_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 tests.common import MockConfigEntry