Sort imports according to PEP8 for 'homeassistant' folder (#29789)

Components are already done
This commit is contained in:
Bas Nijholt authored and Franck Nijhof committed 2019-12-09 16:42:10 +01:00
1 parent 29ec17d50d
commit 67c56c860d
83 files changed
+290 -329

No files matched your search

+1 -2
View File
@@ -10,8 +10,7 @@ from typing import List, Optional, Sequence, Text
from homeassistant.bootstrap import async_mount_local_lib_path
from homeassistant.config import get_default_config_dir
from homeassistant.requirements import pip_kwargs
from homeassistant.util.package import install_package, is_virtual_env, is_installed
from homeassistant.util.package import install_package, is_installed, is_virtual_env
# mypy: allow-untyped-defs, no-warn-return-any
+1 -2
View File
@@ -6,9 +6,8 @@ import os
from homeassistant.auth import auth_manager_from_config
from homeassistant.auth.providers import homeassistant as hass_auth
from homeassistant.core import HomeAssistant
from homeassistant.config import get_default_config_dir
from homeassistant.core import HomeAssistant
# mypy: allow-untyped-calls, allow-untyped-defs
@@ -11,7 +11,6 @@ from homeassistant import core
from homeassistant.const import ATTR_NOW, EVENT_STATE_CHANGED, EVENT_TIME_CHANGED
from homeassistant.util import dt as dt_util
# mypy: allow-untyped-calls, allow-untyped-defs, no-check-untyped-defs
# mypy: no-warn-return-any
+4 -5
View File
@@ -1,19 +1,18 @@
"""Script to check the configuration file."""
import argparse
import logging
import os
from collections import OrderedDict
from glob import glob
from typing import Dict, List, Sequence, Any, Tuple, Callable
import logging
import os
from typing import Any, Callable, Dict, List, Sequence, Tuple
from unittest.mock import patch
from homeassistant import bootstrap, core
from homeassistant.config import get_default_config_dir
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers.check_config import async_check_ha_config_file
import homeassistant.util.yaml.loader as yaml_loader
from homeassistant.exceptions import HomeAssistantError
# mypy: allow-untyped-calls, allow-untyped-defs
-1
View File
@@ -4,7 +4,6 @@ import getpass
from homeassistant.util.yaml import _SECRET_NAMESPACE
# mypy: allow-untyped-defs
REQUIREMENTS = ["credstash==1.15.0"]
+1 -2
View File
@@ -2,9 +2,8 @@
import argparse
import os
from homeassistant.core import HomeAssistant
import homeassistant.config as config_util
from homeassistant.core import HomeAssistant
# mypy: allow-untyped-calls, allow-untyped-defs
-1
View File
@@ -2,7 +2,6 @@
import os
import time
# mypy: allow-untyped-calls, allow-untyped-defs