From bbe54a82dbc7e4931ada476163d080720b7b03e8 Mon Sep 17 00:00:00 2001 From: Klaas Schoute Date: Mon, 29 Oct 2018 22:48:14 +0100 Subject: [PATCH] Update Python_component_simple_alarm component configuration (#7245) --- .../python_component_simple_alarm.markdown | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/source/_cookbook/python_component_simple_alarm.markdown b/source/_cookbook/python_component_simple_alarm.markdown index 16e7d015daa..e212f5d5255 100644 --- a/source/_cookbook/python_component_simple_alarm.markdown +++ b/source/_cookbook/python_component_simple_alarm.markdown @@ -23,10 +23,16 @@ simple_alarm: unknown_light: group.living_room ``` -Configuration variables: - -- **known_light** (*Optional*): Which light/light group has to flash when a known device comes home. -- **unknown_light** (*Optional*): Which light/light group has to flash red when light turns on while no one home. +{% configuration %} +known_light: + description: Which light/light group has to flash when a known device comes home. + required: false + type: string +unknown_light: + description: Which light/light group has to flash red when light turns on while no one home. + required: false + type: string +{% endconfiguration %} Create the file `/custom_components/simple_alarm.py` and copy paste the content below: