mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Sort imports according to PEP8 for soma (#29709)
This commit is contained in:
parent
ebb2722d03
commit
6a11e6aa72
@ -1,20 +1,18 @@
|
||||
"""Support for Soma Smartshades."""
|
||||
import logging
|
||||
|
||||
import voluptuous as vol
|
||||
from api.soma_api import SomaApi
|
||||
from requests import RequestException
|
||||
import voluptuous as vol
|
||||
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import CONF_HOST, CONF_PORT
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity import Entity
|
||||
from homeassistant.helpers.typing import HomeAssistantType
|
||||
|
||||
from homeassistant.const import CONF_HOST, CONF_PORT
|
||||
|
||||
from .const import DOMAIN, HOST, PORT, API
|
||||
|
||||
from .const import API, DOMAIN, HOST, PORT
|
||||
|
||||
DEVICES = "devices"
|
||||
|
||||
|
@ -1,12 +1,13 @@
|
||||
"""Config flow for Soma."""
|
||||
import logging
|
||||
|
||||
import voluptuous as vol
|
||||
from api.soma_api import SomaApi
|
||||
from requests import RequestException
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.const import CONF_HOST, CONF_PORT
|
||||
|
||||
from .const import DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
@ -2,9 +2,8 @@
|
||||
|
||||
import logging
|
||||
|
||||
from homeassistant.components.cover import CoverDevice, ATTR_POSITION
|
||||
from homeassistant.components.soma import DOMAIN, SomaEntity, DEVICES, API
|
||||
|
||||
from homeassistant.components.cover import ATTR_POSITION, CoverDevice
|
||||
from homeassistant.components.soma import API, DEVICES, DOMAIN, SomaEntity
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
@ -5,9 +5,9 @@ from api.soma_api import SomaApi
|
||||
from requests import RequestException
|
||||
|
||||
from homeassistant import data_entry_flow
|
||||
from homeassistant.components.soma import config_flow, DOMAIN
|
||||
from tests.common import MockConfigEntry
|
||||
from homeassistant.components.soma import DOMAIN, config_flow
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
MOCK_HOST = "123.45.67.89"
|
||||
MOCK_PORT = 3000
|
||||
|
Loading…
x
Reference in New Issue
Block a user