From 3b7f6d3b6771644722d0983af0ba1ea641ba030c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 8 Oct 2015 11:09:00 +0200 Subject: [PATCH] Update docstrings --- homeassistant/components/switch/rfxtrx.py | 28 +++++------------------ 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/homeassistant/components/switch/rfxtrx.py b/homeassistant/components/switch/rfxtrx.py index 98963beb769..49a788d0d04 100644 --- a/homeassistant/components/switch/rfxtrx.py +++ b/homeassistant/components/switch/rfxtrx.py @@ -1,26 +1,10 @@ """ homeassistant.components.switch.rfxtrx -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Support for Rfxtrx switch. - -Configuration: - -To use Rfxtrx switchs you will need to add the following to your -configuration.yaml file. - -switch: - platform: rfxtrx - - devices: - ac09c4f1: Bedroom Door - ac09c4f2: Kitchen Door - ac09c4f3: Bathroom Door - -*Optional* - - # Automatic add new switch - automatic_add: True +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Support for RFXtrx switches. +For more details about this platform, please refer to the documentation at +https://home-assistant.io/components/switch.rfxtrx.html """ import logging import homeassistant.components.rfxtrx as rfxtrx @@ -90,7 +74,7 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None): class RfxtrxSwitch(SwitchDevice): - """ Provides a demo switch. """ + """ Provides a RFXtrx switch. """ def __init__(self, name, event, state): self._name = name self._event = event @@ -98,7 +82,7 @@ class RfxtrxSwitch(SwitchDevice): @property def should_poll(self): - """ No polling needed for a demo switch. """ + """ No polling needed for a RFXtrx switch. """ return False @property