Update docstrings to match PEP257

This commit is contained in:
Fabian Affolter 2016-03-07 18:49:31 +01:00
parent 7ff9aecd4e
commit b8a40457ee
40 changed files with 371 additions and 483 deletions

View file

@ -1,6 +1,4 @@
"""
homeassistant.components.shell_command
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Exposes regular shell commands as services.
For more details about this platform, please refer to the documentation at
@ -17,7 +15,7 @@ _LOGGER = logging.getLogger(__name__)
def setup(hass, config):
""" Sets up the shell_command component. """
"""Sets up the shell_command component."""
conf = config.get(DOMAIN)
if not isinstance(conf, dict):
@ -31,7 +29,7 @@ def setup(hass, config):
return False
def service_handler(call):
""" Execute a shell command service. """
"""Execute a shell command service."""
try:
subprocess.call(conf[call.service], shell=True,
stdout=subprocess.DEVNULL,