From bfa4c3e55a63fd031bd031946493cee1f18ef969 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Wed, 18 Mar 2020 10:33:23 +0100 Subject: [PATCH] Add required hyphen in lovelace dashboard url path. (#12420) --- source/lovelace/yaml-mode.markdown | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/lovelace/yaml-mode.markdown b/source/lovelace/yaml-mode.markdown index 91a757c7f36..d1c0369e1b1 100644 --- a/source/lovelace/yaml-mode.markdown +++ b/source/lovelace/yaml-mode.markdown @@ -27,6 +27,8 @@ To revert back to using the UI to edit your Lovelace interface, remove the `love You can define multiple dashboards that all have their own YAML file, and add custom resources that are shared by all dashboards. +The key of the dashboard is used as the URL, this needs to contain a hyphen (`-`). + ```yaml lovelace: mode: yaml @@ -38,14 +40,14 @@ lovelace: type: css # Add more dashboards dashboards: - generated: + lovelace-generated: # Needs to contain a hyphen (-) mode: yaml filename: notexist.yaml title: Generated icon: mdi:tools show_in_sidebar: true require_admin: true - hidden: + lovelace-hidden: mode: yaml title: hidden show_in_sidebar: false @@ -86,7 +88,7 @@ resources: type: string dashboards: required: false - description: Additional Lovelace YAML dashboards. + description: Additional Lovelace YAML dashboards. The key is used for the URL and should contain a hyphen (`-`) type: map keys: mode: