Update docstrings (#6795)

* Add link to docs and remove comments which are obvious

* Update docstrings

* Repleace conf details with link to docs

* Add link to docs

* Update docstrings

* Update import

* Update ordering

* Update ordering

* Update docstring

* Update ordering

* Update ordering
This commit is contained in:
Fabian Affolter authored and GitHub committed 2017-03-26 15:50:40 +02:00
1 parent 22b28d85db
commit 5d5547cdb6
14 files changed
+160 -192

No files matched your search

@@ -1,4 +1,9 @@
"""Entity to track connections to stream API."""
"""
Entity to track connections to stream API.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.api_stream/
"""
import asyncio
import logging
@@ -6,7 +11,6 @@ from homeassistant.const import EVENT_HOMEASSISTANT_STOP
from homeassistant.core import callback
from homeassistant.helpers.entity import Entity
NAME_WS = 'homeassistant.components.websocket_api'
NAME_STREAM = 'homeassistant.components.api'
@@ -46,7 +50,7 @@ class StreamHandler(logging.Handler):
@asyncio.coroutine
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
"""Set up the logger for filters."""
"""Set up the API stream platform."""
entity = APICount()
handler = StreamHandler(entity)