add retry option description for broadlink (#10150)

* add retry option description for broadlink

* Add default
This commit is contained in:
zhumuht 2019-08-17 01:40:01 +08:00 committed by Fabian Affolter
parent 811cb61520
commit 0f3b7c1a31

View File

@ -149,6 +149,11 @@ timeout:
description: Timeout in seconds for the connection to the device. description: Timeout in seconds for the connection to the device.
required: false required: false
type: integer type: integer
retry:
description: Retry times for fetch data if failed.
required: false
type: integer
default: 2
friendly_name: friendly_name:
description: The name used to display the switch in the frontend. description: The name used to display the switch in the frontend.
required: false required: false
@ -216,6 +221,7 @@ switch:
host: 192.168.1.2 host: 192.168.1.2
mac: 'B4:43:0D:CC:0F:58' mac: 'B4:43:0D:CC:0F:58'
timeout: 15 timeout: 15
retry: 5
switches: switches:
# Will work on most Phillips TVs: # Will work on most Phillips TVs:
tv_phillips: tv_phillips:
@ -263,6 +269,7 @@ switch:
host: IP_ADDRESS host: IP_ADDRESS
mac: 'MAC_ADDRESS' mac: 'MAC_ADDRESS'
type: sp2 type: sp2
retry: 5
friendly_name: 'Humidifier' friendly_name: 'Humidifier'
``` ```