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

+11 -11
View File
@@ -11,16 +11,16 @@ import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers import discovery
from homeassistant.const import (CONF_STRUCTURE, CONF_FILENAME,
CONF_BINARY_SENSORS, CONF_SENSORS,
CONF_MONITORED_CONDITIONS)
from homeassistant.const import (
CONF_STRUCTURE, CONF_FILENAME, CONF_BINARY_SENSORS, CONF_SENSORS,
CONF_MONITORED_CONDITIONS)
from homeassistant.loader import get_component
REQUIREMENTS = ['python-nest==3.1.0']
_CONFIGURING = {}
_LOGGER = logging.getLogger(__name__)
REQUIREMENTS = ['python-nest==3.1.0']
DOMAIN = 'nest'
DATA_NEST = 'nest'
@@ -54,7 +54,7 @@ def request_configuration(nest, hass, config):
return
def nest_configuration_callback(data):
"""The actions to do when our configuration callback is called."""
"""Run when the configuration callback is called."""
_LOGGER.debug("configurator callback")
pin = data.get('pin')
setup_nest(hass, nest, config, pin=pin)
@@ -72,7 +72,7 @@ def request_configuration(nest, hass, config):
def setup_nest(hass, nest, config, pin=None):
"""Setup Nest Devices."""
"""Set up the Nest devices."""
if pin is not None:
_LOGGER.debug("pin acquired, requesting access token")
nest.request_token(pin)
@@ -108,7 +108,7 @@ def setup_nest(hass, nest, config, pin=None):
def setup(hass, config):
"""Setup the Nest thermostat component."""
"""Set up the Nest thermostat component."""
import nest
if 'nest' in _CONFIGURING:
@@ -144,7 +144,7 @@ class NestDevice(object):
_LOGGER.debug("Structures to include: %s", self._structure)
def thermostats(self):
"""Generator returning list of thermostats and their location."""
"""Generate a list of thermostats and their location."""
try:
for structure in self.nest.structures:
if structure.name in self._structure:
@@ -158,7 +158,7 @@ class NestDevice(object):
"Connection error logging into the nest web service.")
def smoke_co_alarms(self):
"""Generator returning list of smoke co alarams."""
"""Generate a list of smoke co alarams."""
try:
for structure in self.nest.structures:
if structure.name in self._structure:
@@ -172,7 +172,7 @@ class NestDevice(object):
"Connection error logging into the nest web service.")
def cameras(self):
"""Generator returning list of cameras."""
"""Generate a list of cameras."""
try:
for structure in self.nest.structures:
if structure.name in self._structure: