Update docstrings

This commit is contained in:
Fabian Affolter 2016-02-03 00:23:59 +01:00
parent bd8881cbe1
commit 635369ad65
3 changed files with 18 additions and 20 deletions

View file

@ -41,7 +41,7 @@ def turn_off(hass, entity_id):
def setup(hass, config):
"""Set up input booleans."""
""" Set up input boolean. """
if not isinstance(config.get(DOMAIN), dict):
_LOGGER.error('Expected %s config to be a dictionary', DOMAIN)
return False
@ -68,7 +68,7 @@ def setup(hass, config):
return False
def toggle_service(service):
"""Handle a calls to the input boolean services."""
""" Handle a calls to the input boolean services. """
target_inputs = component.extract_from_service(service)
for input_b in target_inputs:
@ -86,10 +86,10 @@ def setup(hass, config):
class InputBoolean(ToggleEntity):
"""Represent a boolean input within Home Assistant."""
""" Represent a boolean input. """
def __init__(self, object_id, name, state, icon):
"""Initialize a boolean input."""
""" Initialize a boolean input. """
self.entity_id = ENTITY_ID_FORMAT.format(object_id)
self._name = name
self._state = state