From ea7edc5e20bf9b32f5e2f9e4f162c821d1d597d2 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 31 Mar 2019 23:02:01 -0700 Subject: [PATCH] Add require_admin options --- source/_components/panel_custom.markdown | 4 ++++ source/_components/panel_iframe.markdown | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/source/_components/panel_custom.markdown b/source/_components/panel_custom.markdown index 0199458e5ba..49ec76dc699 100644 --- a/source/_components/panel_custom.markdown +++ b/source/_components/panel_custom.markdown @@ -63,6 +63,10 @@ config: description: Configuration to be passed into your web component when being instantiated. required: false type: list +require_admin: + description: If admin access is required to see this panel. + required: false + type: boolean embed_iframe: description: Set to `true` to embed panel in iframe. This is necessary if the panel is using the React framework or if it contains conflicting web components. required: false diff --git a/source/_components/panel_iframe.markdown b/source/_components/panel_iframe.markdown index 9f79b38edb3..6b3e58faee8 100644 --- a/source/_components/panel_iframe.markdown +++ b/source/_components/panel_iframe.markdown @@ -58,6 +58,10 @@ panel_iframe: description: Icon for entry. required: false type: icon + require_admin: + description: If admin access is required to see this iframe. + required: false + type: boolean {% endconfiguration %}

Do **not** create one that are named `lovelace` it will overwrite lovelace causing it to never load.