mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
flake8 and pylint
This commit is contained in:
parent
ed0164843a
commit
52ec4ac1d8
@ -62,6 +62,7 @@ _IP_NEIGH_REGEX = re.compile(
|
|||||||
r'(?P<status>(\w+))')
|
r'(?P<status>(\w+))')
|
||||||
|
|
||||||
|
|
||||||
|
# pylint: disable=unused-argument
|
||||||
def get_scanner(hass, config):
|
def get_scanner(hass, config):
|
||||||
""" Validates config and returns a DD-WRT scanner. """
|
""" Validates config and returns a DD-WRT scanner. """
|
||||||
if not validate_config(config,
|
if not validate_config(config,
|
||||||
@ -146,7 +147,8 @@ class AsusWrtDeviceScanner(object):
|
|||||||
_LOGGER.exception("Unexpected response from router")
|
_LOGGER.exception("Unexpected response from router")
|
||||||
return
|
return
|
||||||
except ConnectionRefusedError:
|
except ConnectionRefusedError:
|
||||||
_LOGGER.exception("Connection refused by router, is telnet enabled?")
|
_LOGGER.exception("Connection refused by router," +
|
||||||
|
" is telnet enabled?")
|
||||||
return
|
return
|
||||||
|
|
||||||
devices = {}
|
devices = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user