Add link to docs, new docstrings, and update docstrings
This commit is contained in:
parent
8de56bc8e2
commit
395743005a
6 changed files with 46 additions and 59 deletions
|
@ -1,9 +1,11 @@
|
|||
"""
|
||||
homeassistant.components.binary_sensor.zigbee
|
||||
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
Contains functionality to use a ZigBee device as a binary sensor.
|
||||
"""
|
||||
|
||||
For more details about this platform, please refer to the documentation at
|
||||
https://home-assistant.io/components/binary_sensor.zigbee/
|
||||
"""
|
||||
from homeassistant.components.binary_sensor import BinarySensorDevice
|
||||
from homeassistant.components.zigbee import (
|
||||
ZigBeeDigitalIn, ZigBeeDigitalInConfig)
|
||||
|
@ -13,9 +15,7 @@ DEPENDENCIES = ["zigbee"]
|
|||
|
||||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""
|
||||
Create and add an entity based on the configuration.
|
||||
"""
|
||||
""" Create and add an entity based on the configuration. """
|
||||
add_entities([
|
||||
ZigBeeBinarySensor(hass, ZigBeeDigitalInConfig(config))
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue