From 68529824069a168efb50c16b84d558dea4372613 Mon Sep 17 00:00:00 2001 From: Rafael Date: Thu, 2 Dec 2021 17:20:52 +0100 Subject: [PATCH] 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 --- docs/example-home-assistant.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/example-home-assistant.yaml b/docs/example-home-assistant.yaml index 2a22a63..fbe0278 100644 --- a/docs/example-home-assistant.yaml +++ b/docs/example-home-assistant.yaml @@ -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: