Sort imports according to PEP8 for nest (#29670)

pull/29761/head
Bas Nijholt 2019-12-09 12:08:51 +01:00 committed by Franck Nijhof
parent ad58e607df
commit 186799794d
7 changed files with 18 additions and 18 deletions

View File

@ -1,11 +1,11 @@
"""Support for Nest devices."""
from datetime import datetime, timedelta
import logging
import socket
from datetime import datetime, timedelta
import threading
from nest import Nest
from nest.nest import AuthorizationError, APIError
from nest.nest import APIError, AuthorizationError
import voluptuous as vol
from homeassistant import config_entries
@ -20,11 +20,11 @@ from homeassistant.const import (
)
from homeassistant.core import callback
from homeassistant.helpers import config_validation as cv
from homeassistant.helpers.dispatcher import dispatcher_send, async_dispatcher_connect
from homeassistant.helpers.dispatcher import async_dispatcher_connect, dispatcher_send
from homeassistant.helpers.entity import Entity
from .const import DOMAIN
from . import local_auth
from .const import DOMAIN
_CONFIGURING = {}
_LOGGER = logging.getLogger(__name__)

View File

@ -1,11 +1,11 @@
"""Support for Nest Cameras."""
import logging
from datetime import timedelta
import logging
import requests
from homeassistant.components import nest
from homeassistant.components.camera import PLATFORM_SCHEMA, Camera, SUPPORT_ON_OFF
from homeassistant.components.camera import PLATFORM_SCHEMA, SUPPORT_ON_OFF, Camera
from homeassistant.util.dt import utcnow
_LOGGER = logging.getLogger(__name__)

View File

@ -8,22 +8,22 @@ from homeassistant.components.climate import PLATFORM_SCHEMA, ClimateDevice
from homeassistant.components.climate.const import (
ATTR_TARGET_TEMP_HIGH,
ATTR_TARGET_TEMP_LOW,
CURRENT_HVAC_COOL,
CURRENT_HVAC_HEAT,
CURRENT_HVAC_IDLE,
FAN_AUTO,
FAN_ON,
HVAC_MODE_AUTO,
HVAC_MODE_COOL,
HVAC_MODE_HEAT,
HVAC_MODE_OFF,
SUPPORT_PRESET_MODE,
SUPPORT_FAN_MODE,
SUPPORT_TARGET_TEMPERATURE,
SUPPORT_TARGET_TEMPERATURE_RANGE,
PRESET_AWAY,
PRESET_ECO,
PRESET_NONE,
CURRENT_HVAC_HEAT,
CURRENT_HVAC_IDLE,
CURRENT_HVAC_COOL,
SUPPORT_FAN_MODE,
SUPPORT_PRESET_MODE,
SUPPORT_TARGET_TEMPERATURE,
SUPPORT_TARGET_TEMPERATURE_RANGE,
)
from homeassistant.const import (
ATTR_TEMPERATURE,

View File

@ -14,7 +14,6 @@ from homeassistant.util.json import load_json
from .const import DOMAIN
DATA_FLOW_IMPL = "nest_flow_implementation"
_LOGGER = logging.getLogger(__name__)

View File

@ -2,9 +2,10 @@
import asyncio
from functools import partial
from nest.nest import NestAuth, AUTHORIZE_URL, AuthorizationError
from nest.nest import AUTHORIZE_URL, AuthorizationError, NestAuth
from homeassistant.core import callback
from . import config_flow
from .const import DOMAIN

View File

@ -3,8 +3,8 @@ import asyncio
from unittest.mock import Mock, patch
from homeassistant import data_entry_flow
from homeassistant.components.nest import DOMAIN, config_flow
from homeassistant.setup import async_setup_component
from homeassistant.components.nest import config_flow, DOMAIN
from tests.common import mock_coro

View File

@ -1,11 +1,11 @@
"""Test Nest local auth."""
from homeassistant.components.nest import const, config_flow, local_auth
from urllib.parse import parse_qsl
import pytest
import requests_mock as rmock
from homeassistant.components.nest import config_flow, const, local_auth
@pytest.fixture
def registered_flow(hass):