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>
This commit is contained in:
Tobias Diez 2025-03-02 23:36:26 +01:00 committed by GitHub
parent 776681d0e2
commit 5dee7c23b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,3 +19,11 @@ 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/<name of the resource>.js
type: module
```