use isort to sort imports according to PEP8 for fan (#29632)
This commit is contained in:
1 parent
57a3f7d5c8
commit
a38f3ac9c6
10 files changed
+45
-38
No files matched your search
@@ -5,8 +5,8 @@ components. Instead call the service directly.
|
||||
"""
|
||||
from homeassistant.components.fan import (
|
||||
ATTR_DIRECTION,
|
||||
ATTR_SPEED,
|
||||
ATTR_OSCILLATING,
|
||||
ATTR_SPEED,
|
||||
DOMAIN,
|
||||
SERVICE_OSCILLATE,
|
||||
SERVICE_SET_DIRECTION,
|
||||
@@ -14,9 +14,9 @@ from homeassistant.components.fan import (
|
||||
)
|
||||
from homeassistant.const import (
|
||||
ATTR_ENTITY_ID,
|
||||
SERVICE_TURN_ON,
|
||||
SERVICE_TURN_OFF,
|
||||
ENTITY_MATCH_ALL,
|
||||
SERVICE_TURN_OFF,
|
||||
SERVICE_TURN_ON,
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
"""The tests for Fan device actions."""
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.fan import DOMAIN
|
||||
from homeassistant.setup import async_setup_component
|
||||
import homeassistant.components.automation as automation
|
||||
from homeassistant.components.fan import DOMAIN
|
||||
from homeassistant.helpers import device_registry
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from tests.common import (
|
||||
MockConfigEntry,
|
||||
assert_lists_same,
|
||||
async_get_device_automations,
|
||||
async_mock_service,
|
||||
mock_device_registry,
|
||||
mock_registry,
|
||||
async_get_device_automations,
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
"""The tests for Fan device conditions."""
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.fan import DOMAIN
|
||||
from homeassistant.const import STATE_ON, STATE_OFF
|
||||
from homeassistant.setup import async_setup_component
|
||||
import homeassistant.components.automation as automation
|
||||
from homeassistant.components.fan import DOMAIN
|
||||
from homeassistant.const import STATE_OFF, STATE_ON
|
||||
from homeassistant.helpers import device_registry
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from tests.common import (
|
||||
MockConfigEntry,
|
||||
assert_lists_same,
|
||||
async_get_device_automations,
|
||||
async_mock_service,
|
||||
mock_device_registry,
|
||||
mock_registry,
|
||||
async_get_device_automations,
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
"""The tests for Fan device triggers."""
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.fan import DOMAIN
|
||||
from homeassistant.const import STATE_ON, STATE_OFF
|
||||
from homeassistant.setup import async_setup_component
|
||||
import homeassistant.components.automation as automation
|
||||
from homeassistant.components.fan import DOMAIN
|
||||
from homeassistant.const import STATE_OFF, STATE_ON
|
||||
from homeassistant.helpers import device_registry
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from tests.common import (
|
||||
MockConfigEntry,
|
||||
assert_lists_same,
|
||||
async_get_device_automations,
|
||||
async_mock_service,
|
||||
mock_device_registry,
|
||||
mock_registry,
|
||||
async_get_device_automations,
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
|
||||
import unittest
|
||||
|
||||
from homeassistant.components.fan import FanEntity
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.fan import FanEntity
|
||||
|
||||
|
||||
class BaseFan(FanEntity):
|
||||
"""Implementation of the abstract FanEntity."""
|
||||
|
||||
Reference in new issue
Block a user