Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions homeassistant/components/google_assistant/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
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,
Expand Down
8 changes: 0 additions & 8 deletions homeassistant/components/google_assistant/smart_home.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
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
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/sensor/tibber.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def unique_id(self):
async def _fetch_data(self):
try:
await self._tibber_home.update_info()
await self._tibber_home.update_price_info()
await self._tibber_home.update_price_info()
except (asyncio.TimeoutError, aiohttp.ClientError):
return
data = self._tibber_home.info['viewer']['home']
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
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
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/helpers/service.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions homeassistant/helpers/translation.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
8 changes: 1 addition & 7 deletions homeassistant/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,11 @@
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',))
Expand Down