diff --git a/homeassistant/components/soma/__init__.py b/homeassistant/components/soma/__init__.py index b4daa28b5b2..93ee4fc9b8f 100644 --- a/homeassistant/components/soma/__init__.py +++ b/homeassistant/components/soma/__init__.py @@ -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" diff --git a/homeassistant/components/soma/config_flow.py b/homeassistant/components/soma/config_flow.py index e2f89273520..f46066e23ca 100644 --- a/homeassistant/components/soma/config_flow.py +++ b/homeassistant/components/soma/config_flow.py @@ -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__) diff --git a/homeassistant/components/soma/cover.py b/homeassistant/components/soma/cover.py index 1577b7f2911..d23cc9ec5d0 100644 --- a/homeassistant/components/soma/cover.py +++ b/homeassistant/components/soma/cover.py @@ -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__) diff --git a/tests/components/soma/test_config_flow.py b/tests/components/soma/test_config_flow.py index 764a18d1b8b..15f90516c17 100644 --- a/tests/components/soma/test_config_flow.py +++ b/tests/components/soma/test_config_flow.py @@ -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