Dear all,
I want to make my custom integration
available in HACS.
I already changed the structure and it is “accepted” by HACS in HA as a custom repository. But its only installing/download the python files and not the JavaScript files. It also not adding the resources to HA (as JavaScript-Modul).
hacs.json
{
"name": "Another MVG",
"description": "Home Assistant addon for MVG integration with frontend resources.",
"url": "https://github.com/Nisbo/another_mvg",
"file_name": "",
"domains": ["sensor"],
"homeassistant": "2023.8.0",
"country": "DE",
"iot_class": "cloud_polling",
"render_readme": true
}
custom_components/another_mvg/manifest.json
{
"domain": "another_mvg",
"name": "Another MVG",
"version": "1.4.0",
"documentation": "https://github.com/Nisbo/another_mvg",
"requirements": [],
"dependencies": [],
"codeowners": ["@Nisbo"],
"resources": [
{
"url": "/local/content-card-another-mvg-big.js",
"type": "module"
},
{
"url": "/local/content-card-another-mvg.js",
"type": "module"
}
]
}
The issue is, that these 2 files
content-card-another-mvg-big.js
content-card-another-mvg.js
are not downloaded/copied to the www folder and also not added to
Settings → Dashboards → 3 dots on the top right corner → resourses
HACS 1.34
HA 2024.8.1
There are no related entries in the log for HACS, only
Logger: homeassistant.util.json
Quelle: helpers/deprecation.py:197
Erstmals aufgetreten: 12:45:26 (6 Vorkommnisse)
Zuletzt protokolliert: 12:46:01
json_loads was called from hacs, this is a deprecated function which will be removed in HA Core 2025.8. Use homeassistant.util.json.json_loads instead, please create a bug report at https://github.com/hacs/integration/issues
logging is enabled
logger:
default: info
logs:
custom_components.hacs: debug