Clean up docstrings (#22679)

* Clean up docstrings

* Fix long lines

* Fix more docstrings

* Fix more docstrings

* Fix more docstrings
This commit is contained in:
Tobias Sauerwein 2019-04-03 17:40:03 +02:00 committed by Pascal Vizeli
parent 625c8e0cee
commit 048b100eea
604 changed files with 604 additions and 3632 deletions

View file

@ -1,9 +1,4 @@
"""
Support for MQTT message handling.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/mqtt/
"""
"""Support for MQTT message handling."""
import asyncio
from functools import partial, wraps
import inspect

View file

@ -1,9 +1,4 @@
"""
This platform enables the possibility to control a MQTT alarm.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/alarm_control_panel.mqtt/
"""
"""This platform enables the possibility to control a MQTT alarm."""
import logging
import re

View file

@ -1,9 +1,4 @@
"""
Support for MQTT binary sensors.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/binary_sensor.mqtt/
"""
"""Support for MQTT binary sensors."""
import logging
import voluptuous as vol

View file

@ -1,9 +1,4 @@
"""
Camera that loads a picture from an MQTT topic.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/camera.mqtt/
"""
"""Camera that loads a picture from an MQTT topic."""
import asyncio
import logging

View file

@ -1,9 +1,4 @@
"""
Support for MQTT climate devices.
For more details about this platform, please refer to the documentation
https://home-assistant.io/components/climate.mqtt/
"""
"""Support for MQTT climate devices."""
import logging
import voluptuous as vol

View file

@ -1,9 +1,4 @@
"""
Support for MQTT cover devices.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/cover.mqtt/
"""
"""Support for MQTT cover devices."""
import logging
import voluptuous as vol

View file

@ -1,9 +1,4 @@
"""
Support for tracking MQTT enabled devices.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/device_tracker.mqtt/
"""
"""Support for tracking MQTT enabled devices."""
import logging
import voluptuous as vol

View file

@ -1,9 +1,4 @@
"""
Support for MQTT discovery.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/mqtt/#discovery
"""
"""Support for MQTT discovery."""
import asyncio
import json
import logging

View file

@ -1,9 +1,4 @@
"""
Support for MQTT fans.
For more details about this platform, please refer to the documentation
https://home-assistant.io/components/fan.mqtt/
"""
"""Support for MQTT fans."""
import logging
import voluptuous as vol

View file

@ -1,9 +1,4 @@
"""
Support for MQTT locks.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/lock.mqtt/
"""
"""Support for MQTT locks."""
import logging
import voluptuous as vol

View file

@ -1,9 +1,4 @@
"""
Support for MQTT sensors.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.mqtt/
"""
"""Support for MQTT sensors."""
from datetime import timedelta
import json
import logging

View file

@ -1,9 +1,4 @@
"""
Support for a local MQTT broker.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/mqtt/#use-the-embedded-broker
"""
"""Support for a local MQTT broker."""
import asyncio
import logging
import tempfile

View file

@ -1,9 +1,4 @@
"""
Helper to handle a set of topics to subscribe to.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/mqtt/
"""
"""Helper to handle a set of topics to subscribe to."""
import logging
from typing import Any, Callable, Dict, Optional

View file

@ -1,9 +1,4 @@
"""
Support for MQTT switches.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/switch.mqtt/
"""
"""Support for MQTT switches."""
import logging
import voluptuous as vol

View file

@ -1,9 +1,4 @@
"""
Support for a generic MQTT vacuum.
For more details about this platform, please refer to the documentation
https://home-assistant.io/components/vacuum.mqtt/
"""
"""Support for a generic MQTT vacuum."""
import logging
import voluptuous as vol