Add API key info to example-home-assistant.yaml

Currently the file makes no mention of any type of auth, so I've added a short example with an explanation of when you should use it.

Signed-off-by:  Rafael Schridi <r.schridi@gmail.com>
This commit is contained in:
Rafael 2021-12-02 17:20:52 +01:00 committed by Eric Callahan
parent d884e5288c
commit 6852982406
1 changed files with 6 additions and 2 deletions

View File

@ -14,8 +14,12 @@ sensor:
- display_status
- virtual_sdcard
value_template: >-
{{ 'OK' if ('result' in value_json) else None }}
{{ 'OK' if ('result' in value_json) else None }}
# Adding an API key is only necessary while using the [authorization] component
# and if Home Assistant is not a trusted client
headers:
x-api-key: 123456789abcdefghijklmno
- platform: template
sensors: