Sort imports according to PEP8 for somfy (#29675)
This commit is contained in:
parent
69b113c539
commit
ad58e607df
6 changed files with 13 additions and 10 deletions
|
@ -5,15 +5,15 @@ For more details about this component, please refer to the documentation at
|
||||||
https://home-assistant.io/integrations/somfy/
|
https://home-assistant.io/integrations/somfy/
|
||||||
"""
|
"""
|
||||||
import asyncio
|
import asyncio
|
||||||
import logging
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
import logging
|
||||||
|
|
||||||
import voluptuous as vol
|
|
||||||
from requests import HTTPError
|
from requests import HTTPError
|
||||||
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.helpers import config_validation as cv, config_entry_oauth2_flow
|
|
||||||
from homeassistant.components.somfy import config_flow
|
from homeassistant.components.somfy import config_flow
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
from homeassistant.helpers import config_entry_oauth2_flow, config_validation as cv
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
from homeassistant.helpers.typing import HomeAssistantType
|
from homeassistant.helpers.typing import HomeAssistantType
|
||||||
from homeassistant.util import Throttle
|
from homeassistant.util import Throttle
|
||||||
|
|
|
@ -4,7 +4,7 @@ from typing import Dict, Union
|
||||||
|
|
||||||
from pymfy.api import somfy_api
|
from pymfy.api import somfy_api
|
||||||
|
|
||||||
from homeassistant import core, config_entries
|
from homeassistant import config_entries, core
|
||||||
from homeassistant.helpers import config_entry_oauth2_flow
|
from homeassistant.helpers import config_entry_oauth2_flow
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ import logging
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
from homeassistant.helpers import config_entry_oauth2_flow
|
from homeassistant.helpers import config_entry_oauth2_flow
|
||||||
|
|
||||||
from .const import DOMAIN
|
from .const import DOMAIN
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
"""Support for Somfy Covers."""
|
"""Support for Somfy Covers."""
|
||||||
from pymfy.api.devices.category import Category
|
|
||||||
from pymfy.api.devices.blind import Blind
|
from pymfy.api.devices.blind import Blind
|
||||||
|
from pymfy.api.devices.category import Category
|
||||||
|
|
||||||
from homeassistant.components.cover import (
|
from homeassistant.components.cover import (
|
||||||
CoverDevice,
|
|
||||||
ATTR_POSITION,
|
ATTR_POSITION,
|
||||||
ATTR_TILT_POSITION,
|
ATTR_TILT_POSITION,
|
||||||
|
CoverDevice,
|
||||||
)
|
)
|
||||||
from . import DOMAIN, SomfyEntity, DEVICES, API
|
|
||||||
|
from . import API, DEVICES, DOMAIN, SomfyEntity
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(hass, config_entry, async_add_entities):
|
async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||||
|
|
|
@ -3,7 +3,8 @@ from pymfy.api.devices.camera_protect import CameraProtect
|
||||||
from pymfy.api.devices.category import Category
|
from pymfy.api.devices.category import Category
|
||||||
|
|
||||||
from homeassistant.components.switch import SwitchDevice
|
from homeassistant.components.switch import SwitchDevice
|
||||||
from . import DOMAIN, SomfyEntity, DEVICES, API
|
|
||||||
|
from . import API, DEVICES, DOMAIN, SomfyEntity
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(hass, config_entry, async_add_entities):
|
async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||||
|
|
|
@ -4,8 +4,8 @@ from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from homeassistant import data_entry_flow, setup, config_entries
|
from homeassistant import config_entries, data_entry_flow, setup
|
||||||
from homeassistant.components.somfy import config_flow, DOMAIN
|
from homeassistant.components.somfy import DOMAIN, config_flow
|
||||||
from homeassistant.helpers import config_entry_oauth2_flow
|
from homeassistant.helpers import config_entry_oauth2_flow
|
||||||
|
|
||||||
from tests.common import MockConfigEntry
|
from tests.common import MockConfigEntry
|
||||||
|
|
Loading…
Add table
Reference in a new issue