From 277ae9a677d693f6d943c97fe7b667ca2be3ee65 Mon Sep 17 00:00:00 2001 From: dnguyen800 <25126347+dnguyen800@users.noreply.github.com> Date: Sun, 14 Oct 2018 12:55:31 -0700 Subject: [PATCH] Update Leviton Decora configuration to new style (#6810) * Update light.decora.markdown * Minor changes --- source/_components/light.decora.markdown | 25 ++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/source/_components/light.decora.markdown b/source/_components/light.decora.markdown index b9f0063e3f5..b40889a8c4f 100644 --- a/source/_components/light.decora.markdown +++ b/source/_components/light.decora.markdown @@ -28,12 +28,25 @@ light: api_key: 0x12345678 ``` -Configuration variables: - -- **devices** array (*Required*): A list of lights to use. - - **[mac address]** (*Required*): The bluetooth address of the switch. - - **name** (*Optional*): The custom name to use in the frontend. - - **api_key** (*Required*): The API key to access the device. +{% configuration %} +devices: + description: A list of lights to use. + required: true + type: map + keys: + mac_address: + required: true + description: The bluetooth address of the switch. + type: string + name: + description: The name to use in the frontend. + required: false + type: string + api_key: + description: The API key to access the device. + required: true + type: string +{% endconfiguration %}
If you get an error looking like this: