Add link to docs and modify docstrings to match PEP257

This commit is contained in:
Fabian Affolter committed 2016-02-24 10:38:06 +01:00
1 parent 3f82b9d6b0
commit 4563c54a3e
13 files changed
+155 -152

No files matched your search

+5 -7
View File
@@ -1,8 +1,8 @@
"""
homeassistant.components.notify.demo
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Demo notification service.
For more details about this platform, please refer to the documentation
https://home-assistant.io/components/demo/
"""
from homeassistant.components.notify import ATTR_TITLE, BaseNotificationService
@@ -10,15 +10,13 @@ EVENT_NOTIFY = "notify"
def get_service(hass, config):
""" Get the demo notification service. """
"""Get the demo notification service."""
return DemoNotificationService(hass)
# pylint: disable=too-few-public-methods
class DemoNotificationService(BaseNotificationService):
""" Implements demo notification service. """
"""Implements demo notification service."""
def __init__(self, hass):
self.hass = hass