mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Links docs (#2510)
* Add link to docs * Fix link to docs * Update docstrings * Fix link
This commit is contained in:
parent
3dcafafc6a
commit
82e992c63c
@ -3,8 +3,6 @@ Support for KNX components.
|
||||
|
||||
For more details about this component, please refer to the documentation at
|
||||
https://home-assistant.io/components/knx/
|
||||
|
||||
(c) 2016 Daniel Matuschek <info@open-homeautomation.com>
|
||||
"""
|
||||
import logging
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
Join platform for notify component.
|
||||
|
||||
For more details about this platform, please refer to the documentation at
|
||||
https://home-assistant.io/components/notify.Join/
|
||||
https://home-assistant.io/components/notify.join/
|
||||
"""
|
||||
import logging
|
||||
import voluptuous as vol
|
||||
|
@ -4,7 +4,7 @@ Flux for Home-Assistant.
|
||||
The idea was taken from https://github.com/KpaBap/hue-flux/
|
||||
|
||||
For more details about this component, please refer to the documentation at
|
||||
https://home-assistant.io/components/switch/flux/
|
||||
https://home-assistant.io/components/switch.flux/
|
||||
"""
|
||||
from datetime import time
|
||||
import logging
|
||||
@ -62,7 +62,7 @@ def set_lights_xy(hass, lights, x_val, y_val, brightness):
|
||||
|
||||
# pylint: disable=unused-argument
|
||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
"""Setup the demo switches."""
|
||||
"""Setup the Flux switches."""
|
||||
name = config.get(CONF_NAME)
|
||||
lights = config.get(CONF_LIGHTS)
|
||||
start_time = config.get(CONF_START_TIME)
|
||||
@ -85,7 +85,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
|
||||
# pylint: disable=too-many-instance-attributes
|
||||
class FluxSwitch(SwitchDevice):
|
||||
"""Flux switch."""
|
||||
"""Representation of a Flux switch."""
|
||||
|
||||
# pylint: disable=too-many-arguments
|
||||
def __init__(self, name, hass, state, lights, start_time, stop_time,
|
||||
|
@ -1,9 +1,9 @@
|
||||
"""Support for TPLink HS100/HS110 smart switch.
|
||||
|
||||
It is able to monitor current switch status, as well as turn on and off
|
||||
the switch. Will work with both HS100 and HS110 switch models.
|
||||
"""
|
||||
Support for TPLink HS100/HS110 smart switch.
|
||||
|
||||
For more details about this platform, please refer to the documentation at
|
||||
https://home-assistant.io/components/switch.tplink/
|
||||
"""
|
||||
from homeassistant.components.switch import SwitchDevice
|
||||
from homeassistant.const import (
|
||||
CONF_HOST, CONF_NAME)
|
||||
@ -13,11 +13,10 @@ DEVICE_DEFAULT_NAME = 'HS100'
|
||||
REQUIREMENTS = ['https://github.com/gadgetreactor/pyHS100/archive/'
|
||||
'master.zip#pyHS100==0.1.2']
|
||||
|
||||
|
||||
# pylint: disable=unused-argument
|
||||
|
||||
|
||||
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
||||
"""Setup the TPLink platform in configuration.yaml."""
|
||||
"""Setup the TPLink switch platform."""
|
||||
from pyHS100.pyHS100 import SmartPlug
|
||||
host = config.get(CONF_HOST)
|
||||
name = config.get(CONF_NAME, DEVICE_DEFAULT_NAME)
|
||||
|
Loading…
x
Reference in New Issue
Block a user