Skip to content

Commit

Permalink
Fix isort on a small set of misc files (home-assistant#29803)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored and pvizeli committed Dec 10, 2019
1 parent 27244e2 commit f5d4878
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 22 deletions.
1 change: 0 additions & 1 deletion docs/source/_ext/edit_on_github.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import os
import warnings


__licence__ = 'BSD (3 clause)'


Expand Down
6 changes: 3 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import sys
import os
import inspect
import os
import sys

from homeassistant.const import __version__, __short_version__
from homeassistant.const import __short_version__, __version__

PROJECT_NAME = 'Home Assistant'
PROJECT_PACKAGE_NAME = 'homeassistant'
Expand Down
1 change: 0 additions & 1 deletion homeassistant/components/xiaomi_miio/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
SERVICE_SET_VOLUME,
)


_LOGGER = logging.getLogger(__name__)

DEFAULT_NAME = "Xiaomi Miio Device"
Expand Down
3 changes: 1 addition & 2 deletions tests/components/feedreader/test_init.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
"""The tests for the feedreader component."""
from datetime import timedelta
from genericpath import exists
from logging import getLogger
from os import remove
import time
import unittest
from unittest import mock
from unittest.mock import patch

from genericpath import exists

from homeassistant.components import feedreader
from homeassistant.components.feedreader import (
CONF_MAX_ENTRIES,
Expand Down
7 changes: 3 additions & 4 deletions tests/components/icloud/test_config_flow.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
"""Tests for the iCloud config flow."""
from unittest.mock import patch, Mock, MagicMock
import pytest
from unittest.mock import MagicMock, Mock, patch

from pyicloud.exceptions import PyiCloudFailedLoginException
import pytest

from homeassistant import data_entry_flow
from homeassistant.components.icloud import config_flow

from homeassistant.components.icloud.config_flow import (
CONF_TRUSTED_DEVICE,
CONF_VERIFICATION_CODE,
)
from homeassistant.components.icloud.const import (
DOMAIN,
CONF_ACCOUNT_NAME,
CONF_GPS_ACCURACY_THRESHOLD,
CONF_MAX_INTERVAL,
DEFAULT_GPS_ACCURACY_THRESHOLD,
DEFAULT_MAX_INTERVAL,
DOMAIN,
)
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
from homeassistant.helpers.typing import HomeAssistantType
Expand Down
4 changes: 2 additions & 2 deletions tests/components/jewish_calendar/test_binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
from homeassistant.setup import async_setup_component
import homeassistant.util.dt as dt_util

from tests.common import async_fire_time_changed

from . import alter_time, make_jerusalem_test_params, make_nyc_test_params

from tests.common import async_fire_time_changed

MELACHA_PARAMS = [
make_nyc_test_params(dt(2018, 9, 1, 16, 0), STATE_ON),
make_nyc_test_params(dt(2018, 9, 1, 20, 21), STATE_OFF),
Expand Down
4 changes: 2 additions & 2 deletions tests/components/jewish_calendar/test_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
from homeassistant.setup import async_setup_component
import homeassistant.util.dt as dt_util

from tests.common import async_fire_time_changed

from . import alter_time, make_jerusalem_test_params, make_nyc_test_params

from tests.common import async_fire_time_changed


async def test_jewish_calendar_min_config(hass):
"""Test minimum jewish calendar configuration."""
Expand Down
14 changes: 7 additions & 7 deletions tests/components/xiaomi_miio/test_vacuum.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""The tests for the Xiaomi vacuum platform."""
import asyncio
from datetime import timedelta, time
from datetime import time, timedelta
from unittest import mock

import pytest
Expand All @@ -22,26 +22,26 @@
)
from homeassistant.components.xiaomi_miio.vacuum import (
ATTR_CLEANED_AREA,
ATTR_CLEANED_TOTAL_AREA,
ATTR_CLEANING_COUNT,
ATTR_CLEANING_TIME,
ATTR_CLEANING_TOTAL_TIME,
ATTR_DO_NOT_DISTURB,
ATTR_DO_NOT_DISTURB_START,
ATTR_DO_NOT_DISTURB_END,
ATTR_DO_NOT_DISTURB_START,
ATTR_ERROR,
ATTR_FILTER_LEFT,
ATTR_MAIN_BRUSH_LEFT,
ATTR_SIDE_BRUSH_LEFT,
ATTR_FILTER_LEFT,
ATTR_CLEANING_COUNT,
ATTR_CLEANED_TOTAL_AREA,
ATTR_CLEANING_TOTAL_TIME,
CONF_HOST,
CONF_NAME,
CONF_TOKEN,
DOMAIN as XIAOMI_DOMAIN,
SERVICE_CLEAN_ZONE,
SERVICE_MOVE_REMOTE_CONTROL,
SERVICE_MOVE_REMOTE_CONTROL_STEP,
SERVICE_START_REMOTE_CONTROL,
SERVICE_STOP_REMOTE_CONTROL,
SERVICE_CLEAN_ZONE,
)
from homeassistant.const import (
ATTR_ENTITY_ID,
Expand Down

0 comments on commit f5d4878

Please sign in to comment.