From 07a75c5eeb8f3c400447a75398166783af7e5c95 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 21 Oct 2015 23:05:13 +0200 Subject: [PATCH] Remove configuration details --- homeassistant/components/sensor/rpi_gpio.py | 35 ++------------------- 1 file changed, 2 insertions(+), 33 deletions(-) diff --git a/homeassistant/components/sensor/rpi_gpio.py b/homeassistant/components/sensor/rpi_gpio.py index 03e3482eb07..53039f96409 100644 --- a/homeassistant/components/sensor/rpi_gpio.py +++ b/homeassistant/components/sensor/rpi_gpio.py @@ -1,41 +1,10 @@ -# -*- coding: utf-8 -*- """ homeassistant.components.sensor.rpi_gpio ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Allows to configure a binary state sensor using RPi GPIO. -To avoid having to run Home Assistant as root when using this component, -run a Raspbian version released at or after September 29, 2015. -sensor: - platform: rpi_gpio - pull_mode: "UP" - value_high: "Active" - value_low: "Inactive" - ports: - 11: PIR Office - 12: PIR Bedroom - -Variables: - -pull_mode -*Optional -The internal pull to use (UP or DOWN). Default is UP. - -value_high -*Optional -The value of the sensor when the port is HIGH. Default is "HIGH". - -value_low -*Optional -The value of the sensor when the port is LOW. Default is "LOW". - -bouncetime -*Optional -The time in milliseconds for port debouncing. Default is 50ms. - -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/sensor.rpi_gpio.html """ import logging from homeassistant.helpers.entity import Entity