thomasloven / lovelace-layout-card

🔹 Get more control over the placement of lovelace cards.
MIT License
1.08k stars 127 forks source link

HACS inject wrong path to JS module #176

Closed via-justa closed 2 years ago

via-justa commented 2 years ago

My Home Assistant version: 2021.12.3

Layout-card version (FROM BROWSER CONSOLE): 2.3.1

What I am doing: Adding the card to the frontend

What I expected to happen: Resource will be added with the right settings

/local/community/lovelace-layout-card/layout-card.js?hacstag=156434866231

What happened instead: Resource is added with wrong path

/hacsfiles/lovelace-layout-card/layout-card.js?hacstag=156434866231

Minimal steps to reproduce: Add the card via HACS

Error messages from the browser console: The layout is not recognized.

By putting an X in the boxes ([X]) below, I indicate that I:

Daniel15 commented 2 years ago

I'm getting a 404 even when I use that path, unfortunately. I do see the file when I look in [path]/www/community/lovelace-layout-card/layout-card.js:

daniel@pi01:/var/local/docker/homeassistant/www/community/lovelace-layout-card $ ls -lah
total 84K
drwxr-sr-x 2 root daniel 4.0K Feb 13 22:37 .
drwxr-sr-x 3 root daniel 4.0K Feb 13 22:37 ..
-rw-r--r-- 1 root daniel  50K Feb 13 22:37 layout-card.js
-rw-r--r-- 1 root daniel  14K Feb 13 22:37 layout-card.js.gz
-rw-r--r-- 1 root daniel  621 Feb 13 22:37 rollup.config.js
-rw-r--r-- 1 root daniel  339 Feb 13 22:37 rollup.config.js.gz

so I'm not sure why I'm getting a 404 😕

I've tried all these URLs:

thomasloven commented 2 years ago

This seems like an issue with HACS if anything.