Closed IhorSyerkov closed 3 years ago
Make sure you have read the issue guidelines and that you filled out the entire template.
That option only works for integrations, the documentation should be updated to reflect that.
Actually all files were unachieved and putted into right place. The problem only in resource path. It would be good to support zip files for cards as well. For ex. in my case I separate editor and main card and load editor only if someone starts edit card. It reduce initial loaded size of javascript
You can still separate it.
I didn't find how. if place in release few files like now https://github.com/IhorSyerkov/linak-desk-card/releases/tag/v1.0.0 with config
{
"name": "LinakDesk Card",
"render_readme": true,
"filename": "linak-desk-card.js"
}
HACS addon doesn't accept my repo with error Repostitory structure for v1.0.0 is not compliant
Your editor should be linak-desk-card-editor.js
but that should not cause that error.
The internal cache of HACS might. Try restarting HA.
Still getting an error. (tried to restart whole setup)
2021-02-12 15:23:31 DEBUG (MainThread) [custom_components.hacs] <Plugin ihorsyerkov/linak-desk-card> Checking repository.
2021-02-12 15:23:31 DEBUG (MainThread) [custom_components.hacs] <Plugin IhorSyerkov/linak-desk-card> Running checks against v1.0.0
only logs what i see from hacs.
For now I packed everything back into one js file. But would be nice to have document limitation, and how to split publish separate files for editor
Installation details
Checklist
Describe the issue
I develop custom lovalece card https://github.com/IhorSyerkov/linak-desk-card. There few js files and I put it into zip archive. According to the HACS docs I created folloving
hacs.json
fileAfter I added my custom repo to the hacs and installed the card. The following path was automatically added to resources
/hacsfiles/linak-desk-card/linak-desk-card.zip
If I change resource path statring to error in hacs store that card is not loaded.Steps to reproduce