mirror of
https://github.com/home-assistant/core.git
synced 2025-11-15 22:10:09 +00:00
use isort to sort imports according to PEP8 for mqtt (#29649)
This commit is contained in:
committed by
Fabian Affolter
parent
d2c1e5d45c
commit
ce5072fc91
@@ -1,7 +1,6 @@
|
||||
"""The tests for the MQTT binary sensor platform."""
|
||||
from datetime import datetime, timedelta
|
||||
import json
|
||||
|
||||
from unittest.mock import ANY, patch
|
||||
|
||||
from homeassistant.components import binary_sensor, mqtt
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"""The tests for mqtt camera component."""
|
||||
from unittest.mock import ANY
|
||||
import json
|
||||
from unittest.mock import ANY
|
||||
|
||||
from homeassistant.components import camera, mqtt
|
||||
from homeassistant.components.mqtt.discovery import async_start
|
||||
|
||||
@@ -11,19 +11,19 @@ from homeassistant.components import mqtt
|
||||
from homeassistant.components.climate import DEFAULT_MAX_TEMP, DEFAULT_MIN_TEMP
|
||||
from homeassistant.components.climate.const import (
|
||||
DOMAIN as CLIMATE_DOMAIN,
|
||||
SUPPORT_AUX_HEAT,
|
||||
SUPPORT_PRESET_MODE,
|
||||
SUPPORT_FAN_MODE,
|
||||
SUPPORT_SWING_MODE,
|
||||
SUPPORT_TARGET_TEMPERATURE,
|
||||
HVAC_MODE_AUTO,
|
||||
HVAC_MODE_COOL,
|
||||
HVAC_MODE_HEAT,
|
||||
HVAC_MODE_DRY,
|
||||
HVAC_MODE_FAN_ONLY,
|
||||
SUPPORT_TARGET_TEMPERATURE_RANGE,
|
||||
PRESET_NONE,
|
||||
HVAC_MODE_HEAT,
|
||||
PRESET_ECO,
|
||||
PRESET_NONE,
|
||||
SUPPORT_AUX_HEAT,
|
||||
SUPPORT_FAN_MODE,
|
||||
SUPPORT_PRESET_MODE,
|
||||
SUPPORT_SWING_MODE,
|
||||
SUPPORT_TARGET_TEMPERATURE,
|
||||
SUPPORT_TARGET_TEMPERATURE_RANGE,
|
||||
)
|
||||
from homeassistant.components.mqtt.discovery import async_start
|
||||
from homeassistant.const import STATE_OFF, STATE_UNAVAILABLE
|
||||
|
||||
@@ -16,11 +16,11 @@ from homeassistant.const import (
|
||||
SERVICE_SET_COVER_POSITION,
|
||||
SERVICE_SET_COVER_TILT_POSITION,
|
||||
SERVICE_STOP_COVER,
|
||||
SERVICE_TOGGLE,
|
||||
SERVICE_TOGGLE_COVER_TILT,
|
||||
STATE_CLOSED,
|
||||
STATE_OPEN,
|
||||
STATE_UNAVAILABLE,
|
||||
SERVICE_TOGGLE,
|
||||
SERVICE_TOGGLE_COVER_TILT,
|
||||
STATE_UNKNOWN,
|
||||
)
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""The tests for the MQTT discovery."""
|
||||
from pathlib import Path
|
||||
import re
|
||||
|
||||
from unittest.mock import patch
|
||||
|
||||
from homeassistant.components import mqtt
|
||||
|
||||
@@ -15,8 +15,8 @@ from homeassistant.const import (
|
||||
EVENT_HOMEASSISTANT_STOP,
|
||||
)
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.setup import async_setup_component
|
||||
from homeassistant.exceptions import ConfigEntryNotReady
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from tests.common import (
|
||||
MockConfigEntry,
|
||||
|
||||
@@ -14,8 +14,8 @@ import homeassistant.util.dt as dt_util
|
||||
from tests.common import (
|
||||
MockConfigEntry,
|
||||
async_fire_mqtt_message,
|
||||
async_mock_mqtt_component,
|
||||
async_fire_time_changed,
|
||||
async_mock_mqtt_component,
|
||||
mock_registry,
|
||||
)
|
||||
|
||||
|
||||
@@ -26,9 +26,9 @@ from homeassistant.components.vacuum import (
|
||||
from homeassistant.const import (
|
||||
CONF_NAME,
|
||||
CONF_PLATFORM,
|
||||
ENTITY_MATCH_ALL,
|
||||
STATE_UNAVAILABLE,
|
||||
STATE_UNKNOWN,
|
||||
ENTITY_MATCH_ALL,
|
||||
)
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
|
||||
Reference in New Issue
Block a user