Update flake8 to 3.7.5 (#20761)

* Upgrade flake8

* Upgrade flake8

* Add noqa for hound
This commit is contained in:
Daniel Høyer Iversen authored and Pascal Vizeli committed 2019-02-05 11:12:09 +01:00
1 parent 2733919cd8
commit ef6b0b8e0b
8 files changed
+13 -10

No files matched your search

@@ -323,6 +323,7 @@ class CastDevice(MediaPlayerDevice):
def __init__(self, cast_info):
"""Initialize the cast device."""
import pychromecast # noqa: pylint: disable=unused-import
self._cast_info = cast_info # type: ChromecastInfo
self._chromecast = None # type: Optional[pychromecast.Chromecast]
self.cast_status = None
@@ -45,6 +45,8 @@ class BboxDeviceScanner(DeviceScanner):
def __init__(self, config):
"""Get host from config."""
from typing import List # noqa: pylint: disable=unused-import
self.host = config[CONF_HOST]
"""Initialize the scanner."""
+1 -1
View File
@@ -265,7 +265,7 @@ def _is_sensor_a_binary_sensor(hass: HomeAssistant, node) -> bool:
def _categorize_nodes(hass: HomeAssistant, nodes, ignore_identifier: str,
sensor_identifier: str)-> None:
sensor_identifier: str) -> None:
"""Sort the nodes to their proper domains."""
for (path, node) in nodes:
ignored = ignore_identifier in path or ignore_identifier in node.name