From 9fcb597f3c7bdda93ddd2e2f9453eca1a44eb249 Mon Sep 17 00:00:00 2001 From: Dan Nixon Date: Wed, 6 Dec 2017 08:47:32 +0000 Subject: [PATCH] Document enable_leds option on TP-Link sockets (#4143) * Document enable_leds option on TP-Link sockets Documents home-assistant PR: https://github.com/home-assistant/home-assistant/pull/10980 * Switch to new style --- source/_components/switch.tplink.markdown | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/source/_components/switch.tplink.markdown b/source/_components/switch.tplink.markdown index f54235fede7..ee56f356880 100644 --- a/source/_components/switch.tplink.markdown +++ b/source/_components/switch.tplink.markdown @@ -32,9 +32,22 @@ switch: host: IP_ADDRESS ``` -Configuration variables: - -- **host** (*Required*): The IP address of your TP-Link switch, eg. `192.168.1.32`. -- **name** (*Optional*): The name to use when displaying this switch. +{% configuration %} +name: + description: The name to use when displaying this switch. + required: false + type: string + default: Random Sensor +host: + description: "The IP address of your TP-Link switch, eg. `192.168.1.32`." + required: true + type: string +enable_leds: + description: If the LEDs on the switch (WiFi and power) should be lit. + required: false + type: boolean + default: true +{% endconfiguration %} +