Sort imports according to PEP8 for components starting with "K" (#29770)

pull/29789/head
Bas Nijholt 2019-12-09 14:25:18 +01:00 committed by Franck Nijhof
parent 1dea0c9e34
commit c49e423c78
5 changed files with 12 additions and 13 deletions

View File

@ -4,15 +4,15 @@ import logging
import requests
import voluptuous as vol
from homeassistant.components.switch import SwitchDevice, PLATFORM_SCHEMA
from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchDevice
from homeassistant.const import (
CONF_HOST,
CONF_NAME,
CONF_PORT,
CONF_PATH,
CONF_USERNAME,
CONF_PASSWORD,
CONF_PATH,
CONF_PORT,
CONF_SWITCHES,
CONF_USERNAME,
)
import homeassistant.helpers.config_validation as cv

View File

@ -1,12 +1,12 @@
"""Support for KEBA charging station binary sensors."""
import logging
from homeassistant.components.binary_sensor import BinarySensorDevice
from homeassistant.components.binary_sensor import (
DEVICE_CLASS_PLUG,
DEVICE_CLASS_CONNECTIVITY,
DEVICE_CLASS_PLUG,
DEVICE_CLASS_POWER,
DEVICE_CLASS_SAFETY,
BinarySensorDevice,
)
from . import DOMAIN

View File

@ -1,9 +1,8 @@
"""Support for KEBA charging station sensors."""
import logging
from homeassistant.const import ENERGY_KILO_WATT_HOUR
from homeassistant.const import DEVICE_CLASS_POWER, ENERGY_KILO_WATT_HOUR
from homeassistant.helpers.entity import Entity
from homeassistant.const import DEVICE_CLASS_POWER
from . import DOMAIN

View File

@ -1,13 +1,14 @@
"""Receive signals from a keyboard and use it as a remote control."""
# pylint: disable=import-error
import logging
import asyncio
import logging
from evdev import InputDevice, categorize, ecodes, list_devices
import aionotify
from evdev import InputDevice, categorize, ecodes, list_devices
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.const import EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP
import homeassistant.helpers.config_validation as cv
_LOGGER = logging.getLogger(__name__)

View File

@ -3,9 +3,8 @@
import os
import shutil
import tempfile
import unittest
from unittest.mock import patch, MagicMock
from unittest.mock import MagicMock, patch
import homeassistant.components.kira as kira
from homeassistant.setup import setup_component