Skip to content

Commit 5dee7c2

Browse files
docs: add instructions of how to register lovelace resources via yaml (#2236)
* docs: add instructions of how to register lovelace resources via yaml * Update docs/frontend/custom-ui/registering-resources.md Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Update registering-resources.md --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 776681d commit 5dee7c2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/frontend/custom-ui/registering-resources.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@ This area is only available when the active user's profile has "advanced mode" e
1919
:::
2020

2121
![Screenshot of the Advanced Mode selector found on the Profile page](/img/en/frontend/frontend-profile-advanced-mode.png)
22+
23+
Alternatively, you can also register the resource by adding it to the `resources` section of `lovelace` in the configuration:
24+
25+
```yaml
26+
resources:
27+
- url: /local/<name of the resource>.js
28+
type: module
29+
```

0 commit comments

Comments
 (0)