Sort imports according to PEP8 for scene ()

This commit is contained in:
Bas Nijholt 2019-12-09 13:12:43 +01:00 committed by Franck Nijhof
parent 127d84edd1
commit 76debf4c88
3 changed files with 3 additions and 4 deletions
homeassistant/components/scene
tests/components/scene

View file

@ -4,12 +4,11 @@ import logging
import voluptuous as vol import voluptuous as vol
from homeassistant.core import DOMAIN as HA_DOMAIN
from homeassistant.const import CONF_PLATFORM, SERVICE_TURN_ON from homeassistant.const import CONF_PLATFORM, SERVICE_TURN_ON
from homeassistant.core import DOMAIN as HA_DOMAIN
from homeassistant.helpers.entity import Entity from homeassistant.helpers.entity import Entity
from homeassistant.helpers.entity_component import EntityComponent from homeassistant.helpers.entity_component import EntityComponent
# mypy: allow-untyped-defs, no-check-untyped-defs # mypy: allow-untyped-defs, no-check-untyped-defs
DOMAIN = "scene" DOMAIN = "scene"

View file

@ -4,7 +4,7 @@ All containing methods are legacy helpers that should not be used by new
components. Instead call the service directly. components. Instead call the service directly.
""" """
from homeassistant.components.scene import DOMAIN from homeassistant.components.scene import DOMAIN
from homeassistant.const import ATTR_ENTITY_ID, SERVICE_TURN_ON, ENTITY_MATCH_ALL from homeassistant.const import ATTR_ENTITY_ID, ENTITY_MATCH_ALL, SERVICE_TURN_ON
from homeassistant.loader import bind_hass from homeassistant.loader import bind_hass

View file

@ -2,8 +2,8 @@
import io import io
import unittest import unittest
from homeassistant.setup import setup_component
from homeassistant.components import light, scene from homeassistant.components import light, scene
from homeassistant.setup import setup_component
from homeassistant.util.yaml import loader as yaml_loader from homeassistant.util.yaml import loader as yaml_loader
from tests.common import get_test_home_assistant from tests.common import get_test_home_assistant