From 757946293e8242f9ea0a90839b8c7556d1425938 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 7 Feb 2016 11:52:17 +0100 Subject: [PATCH] Move configuration details to docs --- homeassistant/components/camera/uvc.py | 29 +++++------------------- homeassistant/components/sensor/mfi.py | 31 +++----------------------- homeassistant/components/switch/mfi.py | 31 +++----------------------- 3 files changed, 11 insertions(+), 80 deletions(-) diff --git a/homeassistant/components/camera/uvc.py b/homeassistant/components/camera/uvc.py index 5185b302c00..eeb447be05a 100644 --- a/homeassistant/components/camera/uvc.py +++ b/homeassistant/components/camera/uvc.py @@ -1,29 +1,10 @@ """ -Ubiquiti Unifi Video Cameras -~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Support for Ubiquiti's UVC cameras +homeassistant.components.camera.uvc +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Support for Ubiquiti's UVC cameras. -Configuration: - -camera: - platform: uvc - nvr: ADDRESS - port: PORT - key: APIKEY - -Variable: - -nvr -*Required -ADDRESS should be the IP or hostname of the NVR server - -port -*Optional -PORT is the port number to use for accessing the NVR - -key -*Required -APIKEY should be the API key available from the NVR web interface +For more details about this platform, please refer to the documentation at +https://home-assistant.io/components/camera.uvc/ """ import logging import socket diff --git a/homeassistant/components/sensor/mfi.py b/homeassistant/components/sensor/mfi.py index 8864809e1cb..3e68f779dbb 100644 --- a/homeassistant/components/sensor/mfi.py +++ b/homeassistant/components/sensor/mfi.py @@ -1,36 +1,11 @@ """ homeassistant.components.sensor.mfi ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Support for Ubiquiti mFi Sensors. +Support for Ubiquiti mFi sensors. -Configuration: - -sensor: - platform: mfi - host: ADDRESS - port: PORT - username: USERNAME - password: PASSWORD - -Variable: - -host -*Required -ADDRESS is the IP or hostname of your mFi controller. - -port -*Optional -PORT is the port of your mFi controller (usually 6443) - -username -*Required -USERNAME is the mFi admin username - -password -*Required -PASSWORD is the mFi admin user's password +For more details about this platform, please refer to the documentation at +https://home-assistant.io/components/sensor.mfi/ """ - import logging from homeassistant.const import (CONF_USERNAME, CONF_PASSWORD, diff --git a/homeassistant/components/switch/mfi.py b/homeassistant/components/switch/mfi.py index 5007698c156..c6a0e251099 100644 --- a/homeassistant/components/switch/mfi.py +++ b/homeassistant/components/switch/mfi.py @@ -1,36 +1,11 @@ """ homeassistant.components.switch.mfi ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Support for Ubiquiti mFi Switches. +Support for Ubiquiti mFi switches. -Configuration: - -sensor: - platform: mfi - host: ADDRESS - port: PORT - username: USERNAME - password: PASSWORD - -Variable: - -host -*Required -ADDRESS is the IP or hostname of your mFi controller. - -port -*Optional -PORT is the port of your mFi controller (usually 6443) - -username -*Required -USERNAME is the mFi admin username - -password -*Required -PASSWORD is the mFi admin user's password +For more details about this platform, please refer to the documentation at +https://home-assistant.io/components/switch.mfi/ """ - import logging from homeassistant.components.switch import DOMAIN, SwitchDevice