diff --git a/homeassistant/components/xiaomi_miio/air_quality.py b/homeassistant/components/xiaomi_miio/air_quality.py index 3824c5b88cd..f5e7e476ac5 100644 --- a/homeassistant/components/xiaomi_miio/air_quality.py +++ b/homeassistant/components/xiaomi_miio/air_quality.py @@ -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 diff --git a/homeassistant/components/xiaomi_miio/fan.py b/homeassistant/components/xiaomi_miio/fan.py index 91b18aaf364..bf3691eb486 100644 --- a/homeassistant/components/xiaomi_miio/fan.py +++ b/homeassistant/components/xiaomi_miio/fan.py @@ -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" diff --git a/homeassistant/components/xiaomi_miio/light.py b/homeassistant/components/xiaomi_miio/light.py index 2343a6787c2..5a7b743b362 100644 --- a/homeassistant/components/xiaomi_miio/light.py +++ b/homeassistant/components/xiaomi_miio/light.py @@ -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__) diff --git a/homeassistant/components/xiaomi_miio/switch.py b/homeassistant/components/xiaomi_miio/switch.py index f9a06924b5c..63229b851d0 100644 --- a/homeassistant/components/xiaomi_miio/switch.py +++ b/homeassistant/components/xiaomi_miio/switch.py @@ -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__) diff --git a/homeassistant/components/xiaomi_miio/vacuum.py b/homeassistant/components/xiaomi_miio/vacuum.py index f1845f534bb..bc703c769a5 100644 --- a/homeassistant/components/xiaomi_miio/vacuum.py +++ b/homeassistant/components/xiaomi_miio/vacuum.py @@ -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__)