mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
pep8 2 time
This commit is contained in:
parent
55932b048e
commit
3d695405b7
@ -99,8 +99,10 @@ class ArubaDeviceScanner(object):
|
|||||||
connect = "ssh {}@{}"
|
connect = "ssh {}@{}"
|
||||||
ssh = pexpect.spawn(connect.format(self.username, self.host))
|
ssh = pexpect.spawn(connect.format(self.username, self.host))
|
||||||
query = ssh.expect(['password:', pexpect.TIMEOUT, pexpect.EOF,
|
query = ssh.expect(['password:', pexpect.TIMEOUT, pexpect.EOF,
|
||||||
'continue connecting (yes/no)?', 'Host key verification failed.',
|
'continue connecting (yes/no)?',
|
||||||
'Connection refused', 'Connection timed out'], timeout=120)
|
'Host key verification failed.',
|
||||||
|
'Connection refused',
|
||||||
|
'Connection timed out'], timeout=120)
|
||||||
if query == 1:
|
if query == 1:
|
||||||
_LOGGER.error("Timeout")
|
_LOGGER.error("Timeout")
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user