Updated docstrings (#7383)
* Updated docstrings * Updated docstrings * Updated docstrings * Update docstrings * Update more docstrings
This commit is contained in:
1 parent
6aac53399d
commit
86cfc2a0ed
35 files changed
+56
-56
No files matched your search
@@ -20,14 +20,14 @@ SUPPORT_RFXTRX = SUPPORT_BRIGHTNESS
|
||||
|
||||
|
||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
"""Setup the RFXtrx platform."""
|
||||
"""Set up the RFXtrx platform."""
|
||||
import RFXtrx as rfxtrxmod
|
||||
|
||||
lights = rfxtrx.get_devices_from_config(config, RfxtrxLight)
|
||||
add_devices(lights)
|
||||
|
||||
def light_update(event):
|
||||
"""Callback for light updates from the RFXtrx gateway."""
|
||||
"""Define callback for light updates from the RFXtrx gateway."""
|
||||
if not isinstance(event.device, rfxtrxmod.LightingDevice) or \
|
||||
not event.device.known_to_be_dimmable:
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user