From 231db8718c51c5248551eea6c02f0130d1694c90 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Mon, 1 Jul 2024 23:58:12 +0800 Subject: [PATCH 1/3] docs: add instructions of how to register lovelace resources via yaml --- docs/frontend/custom-ui/registering-resources.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/frontend/custom-ui/registering-resources.md b/docs/frontend/custom-ui/registering-resources.md index d81a61668a7..b243991e866 100644 --- a/docs/frontend/custom-ui/registering-resources.md +++ b/docs/frontend/custom-ui/registering-resources.md @@ -19,3 +19,10 @@ This area is only available when the active user's profile has "advanced mode" e ::: ![Screenshot of the Advanced Mode selector found on the Profile page](/img/en/frontend/frontend-profile-advanced-mode.png) + +Alternatively, you can also register thee resource by adding it to the `resources` section of `lovelace` in the configuration: +```yaml +resources: + - url: /local/.js + type: module +``` From 18d8e2338d56811a5d6a66a9c183c1696033507a Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Tue, 2 Jul 2024 00:10:48 +0800 Subject: [PATCH 2/3] Update docs/frontend/custom-ui/registering-resources.md Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- docs/frontend/custom-ui/registering-resources.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/frontend/custom-ui/registering-resources.md b/docs/frontend/custom-ui/registering-resources.md index b243991e866..51320949953 100644 --- a/docs/frontend/custom-ui/registering-resources.md +++ b/docs/frontend/custom-ui/registering-resources.md @@ -20,7 +20,7 @@ This area is only available when the active user's profile has "advanced mode" e ![Screenshot of the Advanced Mode selector found on the Profile page](/img/en/frontend/frontend-profile-advanced-mode.png) -Alternatively, you can also register thee resource by adding it to the `resources` section of `lovelace` in the configuration: +Alternatively, you can also register the resource by adding it to the `resources` section of `lovelace` in the configuration: ```yaml resources: - url: /local/.js From cd2b64800a6af98deb9c61bd93bcf2486bf2425a Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Tue, 2 Jul 2024 05:02:51 +0800 Subject: [PATCH 3/3] Update registering-resources.md --- docs/frontend/custom-ui/registering-resources.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/frontend/custom-ui/registering-resources.md b/docs/frontend/custom-ui/registering-resources.md index 51320949953..22a7f7128c9 100644 --- a/docs/frontend/custom-ui/registering-resources.md +++ b/docs/frontend/custom-ui/registering-resources.md @@ -21,6 +21,7 @@ This area is only available when the active user's profile has "advanced mode" e ![Screenshot of the Advanced Mode selector found on the Profile page](/img/en/frontend/frontend-profile-advanced-mode.png) Alternatively, you can also register the resource by adding it to the `resources` section of `lovelace` in the configuration: + ```yaml resources: - url: /local/.js