Update Leviton Decora configuration to new style (#6810)

* Update light.decora.markdown

* Minor changes
This commit is contained in:
dnguyen800 2018-10-14 12:55:31 -07:00 committed by Fabian Affolter
parent b14cea3ee7
commit 277ae9a677

View File

@ -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 %}
<p class='note'>
If you get an error looking like this: