Skip to content

Commit

Permalink
Updated the docs for rest_command (home-assistant#2430)
Browse files Browse the repository at this point in the history
* Updated the docs for rest_command 

* Added the optional content_type config value, used to specify the request content type.

* Remove default content type of 'text/plain'

Should default to current behavior - no header
  • Loading branch information
cmsimike authored and fabaff committed Apr 20, 2017
1 parent 4015a67 commit e70e8b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/_components/rest_command.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Configuration variables:
- **username** (*Optional*): The username for HTTP authentication.
- **password** (*Optional*): The password for HTTP authentication.
- **timeout** (*Optional*): Timeout for requests. Defaults to 10 seconds.
- **content_type** (*Optional*): Content type for the request.

The commands can be dynamic, using templates to insert values of other entities. Service call support variables for template stuff.

0 comments on commit e70e8b1

Please sign in to comment.