Lint cleanups (#15243)

* Remove some unused imports

* Fix a flake8 E271
This commit is contained in:
Ville Skyttä 2018-07-01 18:57:01 +03:00 committed by Paulus Schoutsen
parent 9db8759317
commit 6f582dcf24
7 changed files with 4 additions and 24 deletions

View file

@ -10,10 +10,8 @@ from aiohttp.hdrs import AUTHORIZATION
from aiohttp.web import Request, Response
# Typing imports
# pylint: disable=unused-import
from homeassistant.components.http import HomeAssistantView
from homeassistant.core import HomeAssistant, callback # NOQA
from homeassistant.helpers.entity import Entity # NOQA
from homeassistant.core import callback
from .const import (
GOOGLE_ASSISTANT_API_ENDPOINT,

View file

@ -3,14 +3,6 @@ import collections
from itertools import product
import logging
# Typing imports
# pylint: disable=unused-import
# if False:
from aiohttp.web import Request, Response # NOQA
from typing import Dict, Tuple, Any, Optional # NOQA
from homeassistant.helpers.entity import Entity # NOQA
from homeassistant.core import HomeAssistant # NOQA
from homeassistant.util.unit_system import UnitSystem # NOQA
from homeassistant.util.decorator import Registry
from homeassistant.core import callback

View file

@ -7,7 +7,7 @@ import os
import re
import shutil
# pylint: disable=unused-import
from typing import Any, List, Tuple, Optional # NOQA
from typing import Any, Tuple, Optional # noqa: F401
import voluptuous as vol
from voluptuous.humanize import humanize_error

View file

@ -1,7 +1,5 @@
"""Service calling related helpers."""
import logging
# pylint: disable=unused-import
from typing import Optional # NOQA
from os import path
import voluptuous as vol

View file

@ -1,7 +1,5 @@
"""Translation string lookup helpers."""
import logging
# pylint: disable=unused-import
from typing import Optional # NOQA
from os import path
from homeassistant import config_entries

View file

@ -16,17 +16,11 @@ import logging
import sys
from types import ModuleType
# pylint: disable=unused-import
from typing import Dict, List, Optional, Sequence, Set # NOQA
from typing import Optional, Set
from homeassistant.const import PLATFORM_FORMAT
from homeassistant.util import OrderedSet
# Typing imports
# pylint: disable=using-constant-test,unused-import
if False:
from homeassistant.core import HomeAssistant # NOQA
PREPARED = False
DEPENDENCY_BLACKLIST = set(('config',))