diff --git a/homeassistant/components/remote/__init__.py b/homeassistant/components/remote/__init__.py index af653165ee3..b88629ea468 100644 --- a/homeassistant/components/remote/__init__.py +++ b/homeassistant/components/remote/__init__.py @@ -5,23 +5,22 @@ import logging 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.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 - make_entity_service_schema, PLATFORM_SCHEMA, 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 diff --git a/tests/components/remote/common.py b/tests/components/remote/common.py index d972640487a..1f4a5268440 100644 --- a/tests/components/remote/common.py +++ b/tests/components/remote/common.py @@ -17,9 +17,9 @@ from homeassistant.components.remote import ( ) from homeassistant.const import ( ATTR_ENTITY_ID, + ENTITY_MATCH_ALL, SERVICE_TURN_OFF, SERVICE_TURN_ON, - ENTITY_MATCH_ALL, ) from homeassistant.loader import bind_hass diff --git a/tests/components/remote/test_init.py b/tests/components/remote/test_init.py index 723f38baced..392f0e6fa61 100644 --- a/tests/components/remote/test_init.py +++ b/tests/components/remote/test_init.py @@ -3,17 +3,17 @@ import unittest +import homeassistant.components.remote as remote from homeassistant.const import ( ATTR_ENTITY_ID, - STATE_ON, - STATE_OFF, CONF_PLATFORM, - SERVICE_TURN_ON, 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 TEST_PLATFORM = {remote.DOMAIN: {CONF_PLATFORM: "test"}}