Sort imports according to PEP8 for components starting with "X" (#29782)
This commit is contained in:
parent
9bcd4653e0
commit
96a6a44411
8 changed files with 18 additions and 19 deletions
|
@ -1,16 +1,16 @@
|
|||
"""Support for X10 lights."""
|
||||
import logging
|
||||
from subprocess import check_output, CalledProcessError, STDOUT
|
||||
from subprocess import STDOUT, CalledProcessError, check_output
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.const import CONF_NAME, CONF_ID, CONF_DEVICES
|
||||
from homeassistant.components.light import (
|
||||
ATTR_BRIGHTNESS,
|
||||
PLATFORM_SCHEMA,
|
||||
SUPPORT_BRIGHTNESS,
|
||||
Light,
|
||||
PLATFORM_SCHEMA,
|
||||
)
|
||||
from homeassistant.const import CONF_DEVICES, CONF_ID, CONF_NAME
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"""Sensor for Xbox Live account status."""
|
||||
import logging
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
|
||||
import voluptuous as vol
|
||||
from xboxapi import xbox_api
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
"""Support for Xeoma Cameras."""
|
||||
import logging
|
||||
|
||||
import voluptuous as vol
|
||||
from pyxeoma.xeoma import Xeoma, XeomaError
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.camera import PLATFORM_SCHEMA, Camera
|
||||
from homeassistant.const import CONF_HOST, CONF_NAME, CONF_PASSWORD, CONF_USERNAME
|
||||
|
|
|
@ -5,13 +5,13 @@ from requests.exceptions import RequestException
|
|||
import voluptuous as vol
|
||||
from xfinity_gateway import XfinityGateway
|
||||
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.components.device_tracker import (
|
||||
DOMAIN,
|
||||
PLATFORM_SCHEMA,
|
||||
DeviceScanner,
|
||||
)
|
||||
from homeassistant.const import CONF_HOST
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
"""Add support for the Xiaomi TVs."""
|
||||
import logging
|
||||
|
||||
import voluptuous as vol
|
||||
import pymitv
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.media_player import MediaPlayerDevice, PLATFORM_SCHEMA
|
||||
from homeassistant.components.media_player import PLATFORM_SCHEMA, MediaPlayerDevice
|
||||
from homeassistant.components.media_player.const import (
|
||||
SUPPORT_TURN_OFF,
|
||||
SUPPORT_TURN_ON,
|
||||
|
|
|
@ -9,14 +9,20 @@ import string
|
|||
import requests
|
||||
import slixmpp
|
||||
from slixmpp.exceptions import IqError, IqTimeout, XMPPError
|
||||
from slixmpp.xmlstream.xmlstream import NotConnectedError
|
||||
from slixmpp.plugins.xep_0363.http_upload import (
|
||||
FileTooBig,
|
||||
FileUploadError,
|
||||
UploadServiceNotFound,
|
||||
)
|
||||
from slixmpp.xmlstream.xmlstream import NotConnectedError
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.notify import (
|
||||
ATTR_TITLE,
|
||||
ATTR_TITLE_DEFAULT,
|
||||
PLATFORM_SCHEMA,
|
||||
BaseNotificationService,
|
||||
)
|
||||
from homeassistant.const import (
|
||||
CONF_PASSWORD,
|
||||
CONF_RECIPIENT,
|
||||
|
@ -27,13 +33,6 @@ from homeassistant.const import (
|
|||
import homeassistant.helpers.config_validation as cv
|
||||
import homeassistant.helpers.template as template_helper
|
||||
|
||||
from homeassistant.components.notify import (
|
||||
ATTR_TITLE,
|
||||
ATTR_TITLE_DEFAULT,
|
||||
PLATFORM_SCHEMA,
|
||||
BaseNotificationService,
|
||||
)
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
ATTR_DATA = "data"
|
||||
|
|
|
@ -5,8 +5,8 @@ from xs1_api_client.api_constants import ActuatorType
|
|||
|
||||
from homeassistant.components.climate import ClimateDevice
|
||||
from homeassistant.components.climate.const import (
|
||||
SUPPORT_TARGET_TEMPERATURE,
|
||||
HVAC_MODE_HEAT,
|
||||
SUPPORT_TARGET_TEMPERATURE,
|
||||
)
|
||||
from homeassistant.const import ATTR_TEMPERATURE
|
||||
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
"""The tests for the Xiaomi router device tracker platform."""
|
||||
import logging
|
||||
from asynctest import mock, patch
|
||||
|
||||
from asynctest import mock, patch
|
||||
import requests
|
||||
|
||||
from homeassistant.components.device_tracker import DOMAIN
|
||||
import homeassistant.components.xiaomi.device_tracker as xiaomi
|
||||
from homeassistant.components.xiaomi.device_tracker import get_scanner
|
||||
from homeassistant.const import CONF_HOST, CONF_USERNAME, CONF_PASSWORD, CONF_PLATFORM
|
||||
from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_PLATFORM, CONF_USERNAME
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue