diff --git a/homeassistant/components/kankun/switch.py b/homeassistant/components/kankun/switch.py index 63f289862f6..4f7ba5c8b06 100644 --- a/homeassistant/components/kankun/switch.py +++ b/homeassistant/components/kankun/switch.py @@ -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 diff --git a/homeassistant/components/keba/binary_sensor.py b/homeassistant/components/keba/binary_sensor.py index 8c0503a2020..ac7326cc92e 100644 --- a/homeassistant/components/keba/binary_sensor.py +++ b/homeassistant/components/keba/binary_sensor.py @@ -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 diff --git a/homeassistant/components/keba/sensor.py b/homeassistant/components/keba/sensor.py index f46b2f0cf90..dfa04f95c65 100644 --- a/homeassistant/components/keba/sensor.py +++ b/homeassistant/components/keba/sensor.py @@ -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 diff --git a/homeassistant/components/keyboard_remote/__init__.py b/homeassistant/components/keyboard_remote/__init__.py index d4ed6128cbe..24889a3f820 100644 --- a/homeassistant/components/keyboard_remote/__init__.py +++ b/homeassistant/components/keyboard_remote/__init__.py @@ -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__) diff --git a/tests/components/kira/test_init.py b/tests/components/kira/test_init.py index 9588c2bc1fa..e5056235127 100644 --- a/tests/components/kira/test_init.py +++ b/tests/components/kira/test_init.py @@ -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