Sort imports according to PEP8 for 'tests' (#29791)
This commit is contained in:
1 parent
67c56c860d
commit
f60125b5c9
68 files changed
+254
-251
No files matched your search
@@ -4,6 +4,12 @@ Provide a mock alarm_control_panel platform.
|
||||
Call init before using it in your tests to ensure clean test data.
|
||||
"""
|
||||
from homeassistant.components.alarm_control_panel import AlarmControlPanel
|
||||
from homeassistant.components.alarm_control_panel.const import (
|
||||
SUPPORT_ALARM_ARM_AWAY,
|
||||
SUPPORT_ALARM_ARM_HOME,
|
||||
SUPPORT_ALARM_ARM_NIGHT,
|
||||
SUPPORT_ALARM_TRIGGER,
|
||||
)
|
||||
from homeassistant.const import (
|
||||
STATE_ALARM_ARMED_AWAY,
|
||||
STATE_ALARM_ARMED_HOME,
|
||||
@@ -11,12 +17,7 @@ from homeassistant.const import (
|
||||
STATE_ALARM_DISARMED,
|
||||
STATE_ALARM_TRIGGERED,
|
||||
)
|
||||
from homeassistant.components.alarm_control_panel.const import (
|
||||
SUPPORT_ALARM_ARM_HOME,
|
||||
SUPPORT_ALARM_ARM_AWAY,
|
||||
SUPPORT_ALARM_ARM_NIGHT,
|
||||
SUPPORT_ALARM_TRIGGER,
|
||||
)
|
||||
|
||||
from tests.common import MockEntity
|
||||
|
||||
ENTITIES = {}
|
||||
|
||||
@@ -3,9 +3,9 @@ Provide a mock binary sensor platform.
|
||||
|
||||
Call init before using it in your tests to ensure clean test data.
|
||||
"""
|
||||
from homeassistant.components.binary_sensor import BinarySensorDevice, DEVICE_CLASSES
|
||||
from tests.common import MockEntity
|
||||
from homeassistant.components.binary_sensor import DEVICE_CLASSES, BinarySensorDevice
|
||||
|
||||
from tests.common import MockEntity
|
||||
|
||||
ENTITIES = {}
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@ Provide a mock cover platform.
|
||||
Call init before using it in your tests to ensure clean test data.
|
||||
"""
|
||||
from homeassistant.components.cover import CoverDevice
|
||||
from tests.common import MockEntity
|
||||
|
||||
from tests.common import MockEntity
|
||||
|
||||
ENTITIES = {}
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@ Provide a mock light platform.
|
||||
|
||||
Call init before using it in your tests to ensure clean test data.
|
||||
"""
|
||||
from homeassistant.const import STATE_ON, STATE_OFF
|
||||
from tests.common import MockToggleEntity
|
||||
from homeassistant.const import STATE_OFF, STATE_ON
|
||||
|
||||
from tests.common import MockToggleEntity
|
||||
|
||||
ENTITIES = []
|
||||
|
||||
|
||||
@@ -3,7 +3,8 @@ Provide a mock lock platform.
|
||||
|
||||
Call init before using it in your tests to ensure clean test data.
|
||||
"""
|
||||
from homeassistant.components.lock import LockDevice, SUPPORT_OPEN
|
||||
from homeassistant.components.lock import SUPPORT_OPEN, LockDevice
|
||||
|
||||
from tests.common import MockEntity
|
||||
|
||||
ENTITIES = {}
|
||||
|
||||
@@ -4,8 +4,8 @@ Provide a mock sensor platform.
|
||||
Call init before using it in your tests to ensure clean test data.
|
||||
"""
|
||||
import homeassistant.components.sensor as sensor
|
||||
from tests.common import MockEntity
|
||||
|
||||
from tests.common import MockEntity
|
||||
|
||||
DEVICE_CLASSES = list(sensor.DEVICE_CLASSES)
|
||||
DEVICE_CLASSES.append("none")
|
||||
|
||||
@@ -3,9 +3,9 @@ Provide a mock switch platform.
|
||||
|
||||
Call init before using it in your tests to ensure clean test data.
|
||||
"""
|
||||
from homeassistant.const import STATE_ON, STATE_OFF
|
||||
from tests.common import MockToggleEntity
|
||||
from homeassistant.const import STATE_OFF, STATE_ON
|
||||
|
||||
from tests.common import MockToggleEntity
|
||||
|
||||
ENTITIES = []
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""Provide a mock package component."""
|
||||
from .const import TEST # noqa: F401
|
||||
|
||||
|
||||
DOMAIN = "test_package"
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user