Update docstrings to match PEP257

This commit is contained in:
Fabian Affolter committed 2016-03-07 18:50:30 +01:00
1 parent 7ff9aecd4e
commit b8a40457ee
40 files changed
+371 -483

No files matched your search

+6 -11
View File
@@ -1,8 +1,5 @@
# -*- coding: utf-8 -*-
"""
homeassistant.components.weblink
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Adds links to external webpages.
Support for links to external web pages.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/weblink/
@@ -23,8 +20,7 @@ _LOGGER = logging.getLogger(__name__)
def setup(hass, config):
""" Setup weblink component. """
"""Setup weblink component."""
links = config.get(DOMAIN)
for link in links.get('entities'):
@@ -39,8 +35,7 @@ def setup(hass, config):
class Link(Entity):
""" Represent a link. """
"""Represent a link."""
def __init__(self, hass, name, url, icon):
self.hass = hass
self._name = name
@@ -51,15 +46,15 @@ class Link(Entity):
@property
def icon(self):
""" Icon to use in the frontend, if any. """
"""Return the icon to use in the frontend, if any."""
return self._icon
@property
def name(self):
""" Returns the name of the URL. """
"""Return the name of the URL."""
return self._name
@property
def state(self):
""" Returns the URL. """
"""Return the URL."""
return self._url