Sort imports according to PEP8 for components starting with "R" (#29776)
parent
23b92b2a56
commit
485761bbaf
|
@ -1,32 +1,32 @@
|
|||
"""Support for Radio Thermostat wifi-enabled home thermostats."""
|
||||
import logging
|
||||
|
||||
import voluptuous as vol
|
||||
import radiotherm
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.climate import ClimateDevice, PLATFORM_SCHEMA
|
||||
from homeassistant.components.climate import PLATFORM_SCHEMA, ClimateDevice
|
||||
from homeassistant.components.climate.const import (
|
||||
CURRENT_HVAC_COOL,
|
||||
CURRENT_HVAC_HEAT,
|
||||
CURRENT_HVAC_IDLE,
|
||||
FAN_OFF,
|
||||
FAN_ON,
|
||||
HVAC_MODE_AUTO,
|
||||
HVAC_MODE_COOL,
|
||||
HVAC_MODE_HEAT,
|
||||
HVAC_MODE_OFF,
|
||||
FAN_ON,
|
||||
FAN_OFF,
|
||||
CURRENT_HVAC_IDLE,
|
||||
CURRENT_HVAC_HEAT,
|
||||
CURRENT_HVAC_COOL,
|
||||
SUPPORT_TARGET_TEMPERATURE,
|
||||
SUPPORT_FAN_MODE,
|
||||
SUPPORT_TARGET_TEMPERATURE,
|
||||
)
|
||||
from homeassistant.const import (
|
||||
ATTR_TEMPERATURE,
|
||||
CONF_HOST,
|
||||
PRECISION_HALVES,
|
||||
TEMP_FAHRENHEIT,
|
||||
STATE_ON,
|
||||
TEMP_FAHRENHEIT,
|
||||
)
|
||||
from homeassistant.util import dt as dt_util
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.util import dt as dt_util
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import praw
|
|||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||
from homeassistant.const import CONF_USERNAME, CONF_PASSWORD, CONF_MAXIMUM
|
||||
from homeassistant.const import CONF_MAXIMUM, CONF_PASSWORD, CONF_USERNAME
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity import Entity
|
||||
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
"""Support for departure information for Rhein-Main public transport."""
|
||||
import asyncio
|
||||
import logging
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
|
||||
from RMVtransport import RMVtransport
|
||||
from RMVtransport.rmvtransport import RMVtransportApiConnectionError
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||
from homeassistant.const import CONF_NAME, ATTR_ATTRIBUTION
|
||||
from homeassistant.const import ATTR_ATTRIBUTION, CONF_NAME
|
||||
from homeassistant.exceptions import PlatformNotReady
|
||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
"""Camera platform that has a Raspberry Pi camera."""
|
||||
import os
|
||||
import subprocess
|
||||
import logging
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
from tempfile import NamedTemporaryFile
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.camera import Camera, PLATFORM_SCHEMA
|
||||
from homeassistant.const import CONF_NAME, CONF_FILE_PATH, EVENT_HOMEASSISTANT_STOP
|
||||
from homeassistant.components.camera import PLATFORM_SCHEMA, Camera
|
||||
from homeassistant.const import CONF_FILE_PATH, CONF_NAME, EVENT_HOMEASSISTANT_STOP
|
||||
from homeassistant.helpers import config_validation as cv
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
|
|
@ -3,11 +3,11 @@ import logging
|
|||
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.switch import PLATFORM_SCHEMA
|
||||
from homeassistant.components import rpi_gpio
|
||||
from homeassistant.components.switch import PLATFORM_SCHEMA
|
||||
from homeassistant.const import DEVICE_DEFAULT_NAME
|
||||
from homeassistant.helpers.entity import ToggleEntity
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity import ToggleEntity
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
"""Support to export sensor values via RSS feed."""
|
||||
from html import escape
|
||||
from aiohttp import web
|
||||
|
||||
from aiohttp import web
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.http import HomeAssistantView
|
||||
|
|
|
@ -6,14 +6,14 @@ import voluptuous as vol
|
|||
|
||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||
from homeassistant.const import (
|
||||
CONF_URL,
|
||||
CONF_NAME,
|
||||
CONF_MONITORED_VARIABLES,
|
||||
CONF_NAME,
|
||||
CONF_URL,
|
||||
STATE_IDLE,
|
||||
)
|
||||
from homeassistant.helpers.entity import Entity
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.exceptions import PlatformNotReady
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity import Entity
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import logging
|
|||
from russound_rio import Russound
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.media_player import MediaPlayerDevice, PLATFORM_SCHEMA
|
||||
from homeassistant.components.media_player import PLATFORM_SCHEMA, MediaPlayerDevice
|
||||
from homeassistant.components.media_player.const import (
|
||||
MEDIA_TYPE_MUSIC,
|
||||
SUPPORT_SELECT_SOURCE,
|
||||
|
|
|
@ -9,8 +9,8 @@ from homeassistant.const import (
|
|||
CONF_IP_ADDRESS,
|
||||
CONF_PASSWORD,
|
||||
CONF_PORT,
|
||||
CONF_SSL,
|
||||
CONF_SCAN_INTERVAL,
|
||||
CONF_SSL,
|
||||
)
|
||||
|
||||
from tests.common import MockConfigEntry, mock_coro
|
||||
|
|
|
@ -5,23 +5,22 @@ from unittest.mock import patch
|
|||
|
||||
from homeassistant.components.reddit import sensor as reddit_sensor
|
||||
from homeassistant.components.reddit.sensor import (
|
||||
DOMAIN,
|
||||
ATTR_SUBREDDIT,
|
||||
ATTR_POSTS,
|
||||
CONF_SORT_BY,
|
||||
ATTR_ID,
|
||||
ATTR_URL,
|
||||
ATTR_TITLE,
|
||||
ATTR_SCORE,
|
||||
ATTR_BODY,
|
||||
ATTR_COMMENTS_NUMBER,
|
||||
ATTR_CREATED,
|
||||
ATTR_BODY,
|
||||
ATTR_ID,
|
||||
ATTR_POSTS,
|
||||
ATTR_SCORE,
|
||||
ATTR_SUBREDDIT,
|
||||
ATTR_TITLE,
|
||||
ATTR_URL,
|
||||
CONF_SORT_BY,
|
||||
DOMAIN,
|
||||
)
|
||||
from homeassistant.const import CONF_USERNAME, CONF_PASSWORD, CONF_MAXIMUM
|
||||
from homeassistant.const import CONF_MAXIMUM, CONF_PASSWORD, CONF_USERNAME
|
||||
from homeassistant.setup import setup_component
|
||||
|
||||
from tests.common import get_test_home_assistant, MockDependency
|
||||
|
||||
from tests.common import MockDependency, get_test_home_assistant
|
||||
|
||||
VALID_CONFIG = {
|
||||
"sensor": {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
"""Tests for the Remember The Milk component."""
|
||||
|
||||
import logging
|
||||
import json
|
||||
import logging
|
||||
import unittest
|
||||
from unittest.mock import patch, mock_open, Mock
|
||||
from unittest.mock import Mock, mock_open, patch
|
||||
|
||||
import homeassistant.components.remember_the_milk as rtm
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import aiohttp
|
|||
import homeassistant.components.rest_command as rc
|
||||
from homeassistant.setup import setup_component
|
||||
|
||||
from tests.common import get_test_home_assistant, assert_setup_component
|
||||
from tests.common import assert_setup_component, get_test_home_assistant
|
||||
|
||||
|
||||
class TestRestCommandSetup:
|
||||
|
|
|
@ -6,7 +6,6 @@ from homeassistant.setup import async_setup_component
|
|||
|
||||
from tests.common import mock_coro
|
||||
|
||||
|
||||
VALID_CONFIG_MINIMAL = {
|
||||
"sensor": {"platform": "rmvtransport", "next_departure": [{"station": "3000010"}]}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue