Skip to content

Commit

Permalink
Add mushroom ressource to config (piitaya#1019)
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya authored and bryan-stewart committed Apr 5, 2023
1 parent 5e20f44 commit 366a242
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .hass_dev/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ lovelace: !include lovelace.yaml

frontend:
themes: !include_dir_merge_named themes
extra_module_url:
- http://localhost:4000/mushroom.js
# development_repo: /workspaces/home-assistant-frontend
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,6 @@ npm start

Server will start on port `4000`.

### Home assistant configuration

Once both Home Assistant and mushroom are running, you have to add a resource to Home Assistant UI:

- Enable `Advanced Mode` in your profile page
- Go to Dashboard Resources and add the resource `http://localhost:4000/mushroom.js`:
_Settings__Dashboards__More Options icon__Resources__Add Resource_ → Set _URL_ as `http://localhost:4000/mushroom.js` → Set _Resource type_ as `JavaScript Module`.

### Build

You can build the `mushroom.js` file in `dist` folder by running the build command.
Expand Down

0 comments on commit 366a242

Please sign in to comment.