Add REST Switch state_resource (#14392)

This commit is contained in:
jjlawren 2020-09-04 09:59:01 -05:00 committed by GitHub
parent 753f48d1eb
commit 395b87a084
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,9 +23,13 @@ switch:
{% configuration %}
resource:
description: The resource or endpoint that contains the value.
description: The resource or endpoint used to control the REST switch.
required: true
type: string
state_resource:
description: "The resource or endpoint that reports the state if different from `resource`. Used by `is_on_template`. Defaults to `resource`."
required: false
type: string
method:
description: "The method of the request. Supported `post` or `put`."
required: false