question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The "Add to Lovelace" button won't appear if there are types that are not "module" in the resource list.

See original GitHub issue

Version of HACS

0.22.2

Describe the bug

Many (possibly all, it has been all the ones I have checked) plugins are showing that they should be added to the resources with a type of “module”, even though the repository shows that it should be added with a type of “js”. For example: https://github.com/gadgetchnnel/lovelace-home-feed-card/ has the following in the README.md file:

resources:
  - url: /local/custom-lovelace/home-feed-card/lovelace-home-feed-card.js?v=0.0.0
    type: js

but shows this in HACS

Screenshot 2020-03-05 at 19 27 36

Debug log

Logs
2020-03-05 19:30:28 DEBUG (MainThread) [hacs.repository.plugin.gadgetchnnel.lovelace-home-feed-card] Getting repository information
2020-03-05 19:30:29 DEBUG (MainThread) [hacs.repository.plugin.gadgetchnnel.lovelace-home-feed-card] Running checks against 0.4.0b3
2020-03-05 19:30:30 DEBUG (MainThread) [hacs.template] 'states' is undefined
2020-03-05 19:30:36 INFO (MainThread) [hacs.factory] Task processing of 36 tasks completed in 27 seconds
2020-03-05 19:30:36 DEBUG (MainThread) [hacs.data] Saving data
2020-03-05 19:30:37 DEBUG (MainThread) [hacs] Recuring background task for installed repositories done
2020-03-05 19:30:37 DEBUG (MainThread) [hacs.data] Saving data

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
gadgetchnnelcommented, Mar 7, 2020

@ludeeus I think they were asking what needs to be added for the “Add to Lovelace” option to appear (uninstalling a plugin still seems to automatically remove it from the Lovelace config, but can’t automatically add it to the config when installing it).

I answer to the your question, I haven’t personally found any cards which have had any issues if I have changed them in the resources from “type: js” to “type: module”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding resources to lovelace - Home Assistant OS
Hello, I have updated my hassio to version 0.107.4. Until this version it was possible to add resources like. resources: type: js
Read more >
Unable to get custom lovelace cards working : r/homeassistant
Grabbed a card from the list there. Installed it. Went to Configuration -> Lovelace -> Resources -> Added it with the path shown...
Read more >
How to Create a Home Assistant Dashboard - LazyAdmin
A step-by-step guide on creating your own custom Home Assistant Dashboard. With Weather, Calendar, Chart and music cards.
Read more >
Docs • Svelte
This page contains detailed API reference documentation. It's intended to be a resource for people who already have some familiarity with Svelte. If...
Read more >
5 FRONTEND HACS (Cards and Elements) - YouTube
In todays video I will be showing you 5 Front End HACS that you can make use of in your Home Assistant Lovelace...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found