Add require_admin options

This commit is contained in:
Paulus Schoutsen 2019-03-31 23:02:01 -07:00
parent 4588dbf911
commit ea7edc5e20
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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 %}
<p class='note warning'>Do **not** create one that are named `lovelace` it will overwrite lovelace causing it to never load.</p>