1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-20 02:48:57 +00:00

Update docstrings to match PEP257

This commit is contained in:
Fabian Affolter
2016-02-23 21:31:38 +01:00
parent d6a14a1767
commit a47d6c944e
3 changed files with 32 additions and 37 deletions

View File

@@ -1,7 +1,7 @@
"""
custom_components.hello_world
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Implements the bare minimum that a component should implement.
The "hello world" custom component.
This component implements the bare minimum that a component should implement.
Configuration:
@@ -11,18 +11,18 @@ configuration.yaml file.
hello_world:
"""
# The domain of your component. Should be equal to the name of your component
# The domain of your component. Should be equal to the name of your component.
DOMAIN = "hello_world"
# List of component names (string) your component depends upon
# List of component names (string) your component depends upon.
DEPENDENCIES = []
def setup(hass, config):
""" Setup our skeleton component. """
"""Setup our skeleton component."""
# States are in the format DOMAIN.OBJECT_ID
# States are in the format DOMAIN.OBJECT_ID.
hass.states.set('hello_world.Hello_World', 'Works!')
# return boolean to indicate that initialization was successful
# Return boolean to indicate that initialization was successfully.
return True