Sort imports according to PEP8 for components starting with "L" (#29771)

This commit is contained in:
Bas Nijholt authored and Franck Nijhof committed 2019-12-09 14:22:30 +01:00
1 parent 14779ce3d0
commit 1dea0c9e34
18 files changed
+45 -46

No files matched your search

@@ -5,14 +5,13 @@ from urllib.parse import urlencode
import voluptuous as vol
from homeassistant.const import CONF_HOST, CONF_PORT
import homeassistant.helpers.config_validation as cv
from homeassistant.components.notify import (
ATTR_DATA,
PLATFORM_SCHEMA,
BaseNotificationService,
)
from homeassistant.const import CONF_HOST, CONF_PORT
import homeassistant.helpers.config_validation as cv
ATTR_METHOD = "method"
ATTR_METHOD_DEFAULT = "speak"
+1 -1
View File
@@ -4,7 +4,6 @@ import logging
import pypck
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.components.climate import DEFAULT_MAX_TEMP, DEFAULT_MIN_TEMP
from homeassistant.const import (
CONF_ADDRESS,
@@ -22,6 +21,7 @@ from homeassistant.const import (
TEMP_CELSIUS,
TEMP_FAHRENHEIT,
)
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.discovery import async_load_platform
from homeassistant.helpers.entity import Entity
+1 -1
View File
@@ -2,13 +2,13 @@
import pypck
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.const import (
CONF_ADDRESS,
CONF_BRIGHTNESS,
CONF_STATE,
CONF_UNIT_OF_MEASUREMENT,
)
import homeassistant.helpers.config_validation as cv
from .const import (
CONF_CONNECTIONS,
+1 -1
View File
@@ -8,7 +8,7 @@ import async_timeout
import voluptuous as vol
from homeassistant.components.scene import Scene
from homeassistant.const import CONF_TOKEN, CONF_TIMEOUT, CONF_PLATFORM
from homeassistant.const import CONF_PLATFORM, CONF_TIMEOUT, CONF_TOKEN
from homeassistant.helpers.aiohttp_client import async_get_clientsession
import homeassistant.helpers.config_validation as cv
@@ -4,13 +4,13 @@ import logging
import requests
import voluptuous as vol
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
DEFAULT_TIMEOUT = 10
@@ -7,7 +7,7 @@ import pyteleloisirs
import requests
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 (
MEDIA_TYPE_CHANNEL,
SUPPORT_NEXT_TRACK,
@@ -4,11 +4,10 @@ import logging
import requests
import voluptuous as vol
from homeassistant.components.notify import PLATFORM_SCHEMA, BaseNotificationService
from homeassistant.const import CONF_API_KEY, CONF_DEVICE
from homeassistant.helpers import config_validation as cv
from homeassistant.components.notify import PLATFORM_SCHEMA, BaseNotificationService
_LOGGER = logging.getLogger(__name__)
_RESOURCE = "https://llamalab.com/automate/cloud/message"
@@ -5,12 +5,12 @@ import os
import voluptuous as vol
from homeassistant.const import CONF_NAME, ATTR_ENTITY_ID
from homeassistant.components.camera import (
Camera,
CAMERA_SERVICE_SCHEMA,
PLATFORM_SCHEMA,
Camera,
)
from homeassistant.const import ATTR_ENTITY_ID, CONF_NAME
from homeassistant.helpers import config_validation as cv
from .const import (
+2 -2
View File
@@ -4,9 +4,9 @@ import logging
import requests
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.components.lock import LockDevice, PLATFORM_SCHEMA
from homeassistant.components.lock import PLATFORM_SCHEMA, LockDevice
from homeassistant.const import CONF_ACCESS_TOKEN, CONF_ID
import homeassistant.helpers.config_validation as cv
_LOGGER = logging.getLogger(__name__)
@@ -1,13 +1,13 @@
"""Support for sending data to Logentries webhook endpoint."""
import json
import logging
import requests
import requests
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.const import CONF_TOKEN, EVENT_STATE_CHANGED
from homeassistant.helpers import state as state_helper
import homeassistant.helpers.config_validation as cv
_LOGGER = logging.getLogger(__name__)
+1 -1
View File
@@ -1,6 +1,6 @@
"""Support for settting the level of logging for components."""
import logging
from collections import OrderedDict
import logging
import voluptuous as vol