Update docstrings (#7361)

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update docstrings

* Update tomato.py

* Update isy994.py

* Lint + fix tests

* Lint
This commit is contained in:
Fabian Affolter authored and Paulus Schoutsen committed 2017-04-29 22:04:49 -07:00
1 parent e22e70a01a
commit 3ee4d1060f
264 files changed
+1686 -1768

No files matched your search

@@ -17,11 +17,11 @@ from homeassistant.components.device_tracker import (
from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_USERNAME
from homeassistant.util import Throttle
# Return cached results if last scan was less then this time ago
MIN_TIME_BETWEEN_SCANS = timedelta(seconds=10)
_LOGGER = logging.getLogger(__name__)
REQUIREMENTS = ['pexpect==4.0.1']
_LOGGER = logging.getLogger(__name__)
MIN_TIME_BETWEEN_SCANS = timedelta(seconds=10)
_DEVICES_REGEX = re.compile(
r'(?P<name>([^\s]+))\s+' +
@@ -102,22 +102,22 @@ class ArubaDeviceScanner(DeviceScanner):
'Connection refused',
'Connection timed out'], timeout=120)
if query == 1:
_LOGGER.error('Timeout')
_LOGGER.error("Timeout")
return
elif query == 2:
_LOGGER.error('Unexpected response from router')
_LOGGER.error("Unexpected response from router")
return
elif query == 3:
ssh.sendline('yes')
ssh.expect('password:')
elif query == 4:
_LOGGER.error('Host key Changed')
_LOGGER.error("Host key changed")
return
elif query == 5:
_LOGGER.error('Connection refused by server')
_LOGGER.error("Connection refused by server")
return
elif query == 6:
_LOGGER.error('Connection timed out')
_LOGGER.error("Connection timed out")
return
ssh.sendline(self.password)
ssh.expect('#')