From 780148914938fef0848cde81c2bdd424d67b94ea Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 21 Oct 2015 23:05:54 +0200 Subject: [PATCH] Remove configuration details --- homeassistant/components/switch/rpi_gpio.py | 26 ++------------------- 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/homeassistant/components/switch/rpi_gpio.py b/homeassistant/components/switch/rpi_gpio.py index 08c7ff35255..9dbb8380b94 100644 --- a/homeassistant/components/switch/rpi_gpio.py +++ b/homeassistant/components/switch/rpi_gpio.py @@ -3,31 +3,9 @@ homeassistant.components.switch.rpi_gpio ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Allows to control the GPIO pins of a Raspberry Pi. -Note: To use RPi GPIO, Home Assistant must be run as root. - -Configuration: - -To use the Raspberry GPIO switches you will need to add something like the -following to your configuration.yaml file. - -switch: - platform: rpi_gpio - invert_logic: false - ports: - 11: Fan Office - 12: Light Desk - -Variables: - -invert_logic -*Optional -If true, inverts the output logic to ACTIVE LOW. Default is false (ACTIVE HIGH) - -ports -*Required -An array specifying the GPIO ports to use and the name to use in the frontend. +For more details about this platform, please refer to the documentation at +https://home-assistant.io/components/switch.rpi_gpio.html """ - import logging try: import RPi.GPIO as GPIO