mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
update header and docstrings
This commit is contained in:
parent
bb848e7fcd
commit
19b62c1088
@ -1,4 +1,8 @@
|
|||||||
""" Support for Tellstick lights. """
|
"""
|
||||||
|
homeassistant.components.light.tellstick
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
Support for Tellstick lights.
|
||||||
|
"""
|
||||||
import logging
|
import logging
|
||||||
# pylint: disable=no-name-in-module, import-error
|
# pylint: disable=no-name-in-module, import-error
|
||||||
from homeassistant.components.light import Light, ATTR_BRIGHTNESS
|
from homeassistant.components.light import Light, ATTR_BRIGHTNESS
|
||||||
@ -9,7 +13,7 @@ REQUIREMENTS = ['tellcore-py>=1.0.4']
|
|||||||
|
|
||||||
|
|
||||||
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
||||||
""" Find and return tellstick lights. """
|
""" Find and return Tellstick lights. """
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import tellcore.telldus as telldus
|
import tellcore.telldus as telldus
|
||||||
@ -29,7 +33,7 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
|||||||
|
|
||||||
|
|
||||||
class TellstickLight(Light):
|
class TellstickLight(Light):
|
||||||
""" Represents a tellstick light """
|
""" Represents a Tellstick light. """
|
||||||
last_sent_command_mask = (tellcore_constants.TELLSTICK_TURNON |
|
last_sent_command_mask = (tellcore_constants.TELLSTICK_TURNON |
|
||||||
tellcore_constants.TELLSTICK_TURNOFF |
|
tellcore_constants.TELLSTICK_TURNOFF |
|
||||||
tellcore_constants.TELLSTICK_DIM |
|
tellcore_constants.TELLSTICK_DIM |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user