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