Sort imports according to PEP8 for xiaomi_miio ()

This commit is contained in:
Bas Nijholt 2019-12-09 11:42:18 +01:00 committed by Franck Nijhof
parent 0e71c29e00
commit c7b2c09a61
5 changed files with 33 additions and 33 deletions
homeassistant/components/xiaomi_miio

View file

@ -3,9 +3,9 @@ from miio import AirQualityMonitor, Device, DeviceException
import voluptuous as vol
from homeassistant.components.air_quality import (
AirQualityEntity,
PLATFORM_SCHEMA,
_LOGGER,
PLATFORM_SCHEMA,
AirQualityEntity,
)
from homeassistant.const import CONF_HOST, CONF_NAME, CONF_TOKEN
from homeassistant.exceptions import PlatformNotReady

View file

@ -4,7 +4,6 @@ from enum import Enum
from functools import partial
import logging
import voluptuous as vol
from miio import ( # pylint: disable=import-error
AirFresh,
AirHumidifier,
@ -12,19 +11,19 @@ from miio import ( # pylint: disable=import-error
Device,
DeviceException,
)
from miio.airfresh import ( # pylint: disable=import-error; pylint: disable=import-error
from miio.airfresh import ( # pylint: disable=import-error, import-error
LedBrightness as AirfreshLedBrightness,
OperationMode as AirfreshOperationMode,
)
from miio.airhumidifier import ( # pylint: disable=import-error; pylint: disable=import-error
from miio.airhumidifier import ( # pylint: disable=import-error, import-error
LedBrightness as AirhumidifierLedBrightness,
OperationMode as AirhumidifierOperationMode,
)
from miio.airpurifier import ( # pylint: disable=import-error; pylint: disable=import-error
from miio.airpurifier import ( # pylint: disable=import-error, import-error
LedBrightness as AirpurifierLedBrightness,
OperationMode as AirpurifierOperationMode,
)
import voluptuous as vol
from homeassistant.components.fan import PLATFORM_SCHEMA, SUPPORT_SET_SPEED, FanEntity
from homeassistant.const import (
@ -39,26 +38,27 @@ import homeassistant.helpers.config_validation as cv
from .const import (
DOMAIN,
SERVICE_SET_BUZZER_ON,
SERVICE_SET_BUZZER_OFF,
SERVICE_SET_LED_ON,
SERVICE_SET_LED_OFF,
SERVICE_SET_CHILD_LOCK_ON,
SERVICE_SET_CHILD_LOCK_OFF,
SERVICE_SET_LED_BRIGHTNESS,
SERVICE_SET_FAVORITE_LEVEL,
SERVICE_SET_AUTO_DETECT_ON,
SERVICE_SET_AUTO_DETECT_OFF,
SERVICE_SET_LEARN_MODE_ON,
SERVICE_SET_LEARN_MODE_OFF,
SERVICE_SET_VOLUME,
SERVICE_RESET_FILTER,
SERVICE_SET_EXTRA_FEATURES,
SERVICE_SET_TARGET_HUMIDITY,
SERVICE_SET_DRY_ON,
SERVICE_SET_AUTO_DETECT_OFF,
SERVICE_SET_AUTO_DETECT_ON,
SERVICE_SET_BUZZER_OFF,
SERVICE_SET_BUZZER_ON,
SERVICE_SET_CHILD_LOCK_OFF,
SERVICE_SET_CHILD_LOCK_ON,
SERVICE_SET_DRY_OFF,
SERVICE_SET_DRY_ON,
SERVICE_SET_EXTRA_FEATURES,
SERVICE_SET_FAVORITE_LEVEL,
SERVICE_SET_LEARN_MODE_OFF,
SERVICE_SET_LEARN_MODE_ON,
SERVICE_SET_LED_BRIGHTNESS,
SERVICE_SET_LED_OFF,
SERVICE_SET_LED_ON,
SERVICE_SET_TARGET_HUMIDITY,
SERVICE_SET_VOLUME,
)
_LOGGER = logging.getLogger(__name__)
DEFAULT_NAME = "Xiaomi Miio Device"

View file

@ -34,14 +34,14 @@ from homeassistant.util import color, dt
from .const import (
DOMAIN,
SERVICE_SET_SCENE,
SERVICE_SET_DELAYED_TURN_OFF,
SERVICE_REMINDER_ON,
SERVICE_REMINDER_OFF,
SERVICE_NIGHT_LIGHT_MODE_ON,
SERVICE_NIGHT_LIGHT_MODE_OFF,
SERVICE_EYECARE_MODE_ON,
SERVICE_EYECARE_MODE_OFF,
SERVICE_EYECARE_MODE_ON,
SERVICE_NIGHT_LIGHT_MODE_OFF,
SERVICE_NIGHT_LIGHT_MODE_ON,
SERVICE_REMINDER_OFF,
SERVICE_REMINDER_ON,
SERVICE_SET_DELAYED_TURN_OFF,
SERVICE_SET_SCENE,
)
_LOGGER = logging.getLogger(__name__)

View file

@ -26,10 +26,10 @@ import homeassistant.helpers.config_validation as cv
from .const import (
DOMAIN,
SERVICE_SET_WIFI_LED_ON,
SERVICE_SET_WIFI_LED_OFF,
SERVICE_SET_POWER_MODE,
SERVICE_SET_POWER_PRICE,
SERVICE_SET_WIFI_LED_OFF,
SERVICE_SET_WIFI_LED_ON,
)
_LOGGER = logging.getLogger(__name__)

View file

@ -39,11 +39,11 @@ import homeassistant.helpers.config_validation as cv
from .const import (
DOMAIN,
SERVICE_CLEAN_ZONE,
SERVICE_MOVE_REMOTE_CONTROL,
SERVICE_MOVE_REMOTE_CONTROL_STEP,
SERVICE_START_REMOTE_CONTROL,
SERVICE_STOP_REMOTE_CONTROL,
SERVICE_CLEAN_ZONE,
)
_LOGGER = logging.getLogger(__name__)