Sort imports according to PEP8 for remote (#29749)

This commit is contained in:
Bas Nijholt 2019-12-09 13:09:16 +01:00 committed by Franck Nijhof
parent c4a6f265e8
commit f81e608cc1
3 changed files with 17 additions and 18 deletions

View file

@ -5,23 +5,22 @@ import logging
import voluptuous as vol import voluptuous as vol
from homeassistant.loader import bind_hass
from homeassistant.helpers.entity_component import EntityComponent
from homeassistant.helpers.entity import ToggleEntity
import homeassistant.helpers.config_validation as cv
from homeassistant.const import (
STATE_ON,
SERVICE_TURN_ON,
SERVICE_TURN_OFF,
SERVICE_TOGGLE,
)
from homeassistant.components import group from homeassistant.components import group
from homeassistant.const import (
SERVICE_TOGGLE,
SERVICE_TURN_OFF,
SERVICE_TURN_ON,
STATE_ON,
)
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.config_validation import ( # noqa: F401 from homeassistant.helpers.config_validation import ( # noqa: F401
make_entity_service_schema,
PLATFORM_SCHEMA, PLATFORM_SCHEMA,
PLATFORM_SCHEMA_BASE, PLATFORM_SCHEMA_BASE,
make_entity_service_schema,
) )
from homeassistant.helpers.entity import ToggleEntity
from homeassistant.helpers.entity_component import EntityComponent
from homeassistant.loader import bind_hass
# mypy: allow-untyped-defs, no-check-untyped-defs # mypy: allow-untyped-defs, no-check-untyped-defs

View file

@ -17,9 +17,9 @@ from homeassistant.components.remote import (
) )
from homeassistant.const import ( from homeassistant.const import (
ATTR_ENTITY_ID, ATTR_ENTITY_ID,
ENTITY_MATCH_ALL,
SERVICE_TURN_OFF, SERVICE_TURN_OFF,
SERVICE_TURN_ON, SERVICE_TURN_ON,
ENTITY_MATCH_ALL,
) )
from homeassistant.loader import bind_hass from homeassistant.loader import bind_hass

View file

@ -3,17 +3,17 @@
import unittest import unittest
import homeassistant.components.remote as remote
from homeassistant.const import ( from homeassistant.const import (
ATTR_ENTITY_ID, ATTR_ENTITY_ID,
STATE_ON,
STATE_OFF,
CONF_PLATFORM, CONF_PLATFORM,
SERVICE_TURN_ON,
SERVICE_TURN_OFF, SERVICE_TURN_OFF,
SERVICE_TURN_ON,
STATE_OFF,
STATE_ON,
) )
import homeassistant.components.remote as remote
from tests.common import mock_service, get_test_home_assistant from tests.common import get_test_home_assistant, mock_service
from tests.components.remote import common from tests.components.remote import common
TEST_PLATFORM = {remote.DOMAIN: {CONF_PLATFORM: "test"}} TEST_PLATFORM = {remote.DOMAIN: {CONF_PLATFORM: "test"}}