Sort imports according to PEP8 for components starting with "S" (#29777)

This commit is contained in:
Bas Nijholt 2019-12-09 14:38:01 +01:00 committed by Franck Nijhof
parent 21816eeed4
commit 23b92b2a56
53 changed files with 170 additions and 171 deletions

View file

@ -1,24 +1,25 @@
"""Component for the Go Slide API."""
import logging
from datetime import timedelta
import logging
import voluptuous as vol
from goslideapi import GoSlideCloud, goslideapi
import voluptuous as vol
from homeassistant.const import (
CONF_USERNAME,
CONF_PASSWORD,
CONF_SCAN_INTERVAL,
STATE_OPEN,
CONF_USERNAME,
STATE_CLOSED,
STATE_OPENING,
STATE_CLOSING,
STATE_OPEN,
STATE_OPENING,
)
from homeassistant.helpers import config_validation as cv
from homeassistant.helpers.discovery import async_load_platform
from homeassistant.helpers.event import async_track_time_interval, async_call_later
from .const import DOMAIN, SLIDES, API, COMPONENT, DEFAULT_RETRY
from homeassistant.helpers.event import async_call_later, async_track_time_interval
from .const import API, COMPONENT, DEFAULT_RETRY, DOMAIN, SLIDES
_LOGGER = logging.getLogger(__name__)

View file

@ -2,15 +2,16 @@
import logging
from homeassistant.const import ATTR_ID
from homeassistant.components.cover import (
ATTR_POSITION,
STATE_CLOSED,
STATE_OPENING,
STATE_CLOSING,
DEVICE_CLASS_CURTAIN,
STATE_CLOSED,
STATE_CLOSING,
STATE_OPENING,
CoverDevice,
)
from homeassistant.const import ATTR_ID
from .const import API, DOMAIN, SLIDES
_LOGGER = logging.getLogger(__name__)