forked from home-assistant/core
Fixed travis another CI indenting error
This commit is contained in:
@@ -46,7 +46,7 @@ class DdWrtDeviceScanner(object):
|
|||||||
|
|
||||||
self.mac2name = None
|
self.mac2name = None
|
||||||
|
|
||||||
#test the router is accessible
|
# Test the router is accessible
|
||||||
url = 'http://{}/Status_Wireless.live.asp'.format(self.host)
|
url = 'http://{}/Status_Wireless.live.asp'.format(self.host)
|
||||||
data = self.get_ddwrt_data(url)
|
data = self.get_ddwrt_data(url)
|
||||||
self.success_init = data is not None
|
self.success_init = data is not None
|
||||||
@@ -142,7 +142,7 @@ class DdWrtDeviceScanner(object):
|
|||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
return _parse_ddwrt_response(response.text)
|
return _parse_ddwrt_response(response.text)
|
||||||
elif response.status_code == 401:
|
elif response.status_code == 401:
|
||||||
# Authentication error
|
# Authentication error
|
||||||
_LOGGER.exception(
|
_LOGGER.exception(
|
||||||
"Failed to authenticate, "
|
"Failed to authenticate, "
|
||||||
"please check your username and password")
|
"please check your username and password")
|
||||||
|
Reference in New Issue
Block a user