resources of same card doubled after repo rename (old version sticks around)
System Health details
System Information
| Key | Value |
|---|---|
| Version | core-2026.3.2 |
| Installation type | Home Assistant OS |
| Supervisor | true |
| Docker | true |
| Container architecture | amd64 |
| User | root |
| Python version | 3.14.2 |
| OS family / version | Linux 6.12.67-haos |
| CPU architecture | x86_64 |
| Timezone | Europe/Vienna |
| Configuration directory | /config |
HACS
| Key | Value |
|---|---|
| Installed version | 2.0.5 |
| Stage | running |
| Available repositories | 2874 |
| Downloaded repositories | 41 |
| GitHub API calls remaining | 4959 |
| GitHub API / Content / Web / HACS Data | ✅ ok |
Home Assistant Cloud
Not logged in · All endpoints reachable ✅
Supervisor
| Key | Value |
|---|---|
| HAOS version | 17.1 |
| Update channel | stable |
| Supervisor | supervisor-2026.03.0 |
| Agent | 1.8.1 |
| Docker | 29.1.3 |
| Disk | 33.8 GB / 62.3 GB used |
| Nameservers | 8.8.8.8 |
| Virtualization | kvm (ova board) |
| Health / Supported | ✅ / ✅ |
| Connectivity / NTP | ✅ / ✅ |
Installed add-ons: Mosquitto broker 6.5.2 · Duck DNS 1.26.0 · File editor 5.8.0 · Node-RED 21.0.3 · TasmoAdmin 0.33.0 · Advanced SSH & Web Terminal 23.0.3 · Terminal & SSH 10.0.2 · Google Drive Backup 0.112.1 · NGINX SSL proxy 4.1.0 · Music Assistant 2.3.6 · RPC Shutdown 2.5 · Studio Code Server 6.0.1 · go2rtc 1.9.14 · Matter Server 8.3.0 · OpenThread Border Router 2.16.5 · Firefox Edge 1.10.1 · ESPHome Device Builder 2026.2.4 · ESPresense Companion 2.1.2
Dashboards
6 dashboards · 21 resources · 8 views · mode: storage
Network
| Key | Value |
|---|---|
| Active adapter | enp0s18 (default, auto) |
| IPv4 | 192.168.0.45/24 |
| IPv6 | fdd4:a9fb:b487:48c1:1fa:35c5:6790:d035/64 |
| Announce addresses | 192.168.0.45, fdd4:…d035, fe80::1f7e:… |
All other adapters (lo, hassio, docker0, veth*, wpan0) are disabled or internal.
Recorder
| Key | Value |
|---|---|
| DB engine | SQLite 3.49.2 |
| DB size | ~717.93 MiB |
| Oldest run | March 5, 2026 13:51 |
| Current run start | March 17, 2026 13:46 |
Metrics
| CPU | RAM | |
|---|---|---|
| Core | 1% | 6.7% |
| Supervisor | 0.1% | 1.2% |
Checklist
- [x] I'm running the newest version of HACS https://github.com/hacs/integration/releases/latest
- [x] I have enabled debug logging for my installation.
- [x] I have filled out the issue template to the best of my ability.
- [x] I have read https://hacs.xyz/docs/help/issues/
- [x] This issue is related to the backend (integration part) of HACS.
- [x] This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
- [x] This is a bug and not a feature request.
- [x] This issue is not a duplicate issue of currently open or issues pending release.
Describe the issue
Even though its a niche issue, the fault state is quite hidden/problematic.
If a custom repository changes repository name, github will still forward the old repo link to the new one. In HACS everything seaminly still works fine. Repos shows up, can be downloaded, updates show up and can be installed.
But the card (i have not checked if its the same for integrations, scripts, etc) might not update, depending on the order of resources loaded. It seams the old resource sticks around besides the new one, so when an updated happend both versions are loaded. And just one of them will take effect, maybe the new one, but also maybe the old one.
The user has zero indication of this, except that (if the card posts version in the console) both versions will be posted to the console. a manual check and removal of the old resource is needed.
On checking the diagnostic dump, i notices that hacs seam to actually track renamed repositories. So maybe it should be handled after all. Even stranger that resources are doubled up then.
Before rename:
After rename and version bump
The update shows up fine in ha, no interaction necessary. also installs fine. In the case of my reproducer (obviously) it loads the updates version correctly.
But the issue with double resources is still visible:
In my real card example it loaded the old one, and ignored the new one. Unsure how the order is defined here?
(real example: old repo: Liquidmasl/homeassistant-arr-queue-card new repo: Liquidmasl/lovelace-arr-media-carrd). Although this cant really be used to reproduce anymore now because the initial install must have happend before the rename...
I had the additional issue that i renamed the card (with deprecated alias). So both resources kinda loaded but the new one didnt take effect.
bottom line
Unsure if this should be fixed at all, but I think some indication, warning, etc should be visible somewhere! Or just 'forbid' repo name changes? Currently I regret strongly renaming the repo because all people who used the custom repo before will now be somewhat stuck on an old version until they even notice that there is an issue. Some people might actually never notice anything being off and running an ancient version of the card forever.
what might work?
Remove resources explicitly on package updates, instead of relying on overwriting them?
Reproduction steps
- create custom card repo
- add it to hacs
- install it
- rename repo
- push release
- update card in hacs
- check resources - should be doubled up now, old and new next to each other
- depending on the load order of resources, card might be in old version or new one..?
Debug logs
2026-03-17 15:03:24.304 INFO (MainThread) [custom_components.hacs] Stage changed: startup
2026-03-17 15:03:24.308 DEBUG (MainThread) [custom_components.hacs] There are 6 scheduled recurring tasks
2026-03-17 15:03:24.309 INFO (MainThread) [custom_components.hacs] Loading removed repositories
2026-03-17 15:03:24.392 INFO (MainThread) [custom_components.hacs] Loading known repositories
2026-03-17 15:03:24.392 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for plugin
2026-03-17 15:03:24.394 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for integration
2026-03-17 15:03:24.394 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for template
2026-03-17 15:03:24.394 DEBUG (MainThread) [custom_components.hacs] Fetching updated content for theme
2026-03-17 15:03:24.599 INFO (MainThread) [custom_components.hacs] Stage changed: running
2026-03-17 15:03:24.614 DEBUG (MainThread) [custom_components.hacs] <QueueManager> The queue is empty
2026-03-17 15:03:24.615 DEBUG (MainThread) [custom_components.hacs] <HACSStore async_save_to_store> Did not store data for 'hacs.critical'. Content did not change
2026-03-17 15:03:24.615 DEBUG (MainThread) [custom_components.hacs] Nothing in the queue
Diagnostics dump
Thank you for opening an issue in the HACS.
Before proceeding, please verify the following:
Select the correct issue template: HACS provides different templates for different types of bugs. Choosing the right template ensures you're asked the right questions and helps route your bug appropriately.
Complete the ENTIRE issue template: Make sure you've read the issue guidelines and filled out every single field in the issue template, even if some fields seem unrelated to your specific situation.
Fill out everything, even if it seems unnecessary: Don't skip fields because they "don't seem relevant" to your bug. The template asks for specific information because:
- Problems often have unexpected causes that surface through "unrelated" details
- What seems unrelated to you might be the key to solving your bug
- Incomplete information requires follow-up questions, delaying resolution
- The template is designed based on years of troubleshooting experience
- Missing information forces those helping to make assumptions, which can lead to wrong solutions
Issues with incomplete templates take significantly longer to resolve or may be closed without resolution.
If you're experiencing a similar bug: If your bug is identical to an existing one, please:
- Add a 👍 reaction to the original issue description
- Subscribe to notifications on that issue to stay updated
- Do not add comments like "same here", "I have this too", or "+1"
Adding duplicate comments creates noise and makes it harder to track and resolve issues. Reactions help prioritize issues based on how many users are affected.
Getting help: If you need assistance filling out the template or understanding your issue:
- Issue Guidelines - Detailed instructions for reporting issues
- HACS Discord - Community support and real-time help
What happens next: Maintainers and community members will review your issue and may:
- Ask for additional information if the template is incomplete
- Provide a solution or workaround
- Label the issue appropriately for tracking
- Link it to related issues or pull requests
If you change the name, you are effectively creating a new thing. You should then provide a migration path to the user, as this will also hit them outside of those using HACS for downloading.
If you change the name, you are effectively creating a new thing. You should then provide a migration path to the user, as this will also hit them outside of those using HACS for downloading.
yeah for manual installs this migration guide is definitely necessary. But for hacs installs the issue is that it works 90% the way. The rename seams to be tracked, looking at the diagnostics, the updates work fine, everything seams to be doing just fine actually. Except that the old resource sticks around, potentially overwriting the new one. It just seams like an oversight or regression, something that was handled once.
I might be wrong though of course. But in that case renaming repos should maybe just lead to some fault or warning maybe?
Yup, that is a problem, one that (realistically) can not be fixed with other than manual steps. I suggest you add a note to your release notes for the next little while with instructions to remove your entry, or add some sort of double registration handler to message the user. I know both variants have been used in the past. Generally, do not rename 😄 It is way better to start fresh in a new repo if your scope has changed.
Hey! I may be able to help with this bug.
I build custom fixes for Python projects and automation systems.
If you'd like help resolving this issue quickly feel free to reach out.
Happy to take a look 👍
Yeah I added the info to patch logs and readme. It will be okay!
As someone who does not know how HACS works below the curtain, it seamed like an oversight, maybe some change that lead to the removal of old resources not working anymore or something. But if its a known issue/functionality then so be it! Its always easy to assume how stuff works when having no idea haha "Why not just remove a resource when HACS detected a repo rename?"
About the rename: yes, absolutely. The name just sucked, which normally wouldn't matter, but since I read that the js needs to have the same name i could not stomach it anymore and needed to make it consistent now, when there is still only like 60 downloads haha
Thanks for the quick response.
HACS could never solve it 100%, there would always be situations that would not be covered, and then there is the fact that not eveyone uses HACS, so a solution there, would not have applied to those anyway, which is why it is preferred not to change, but if needed, inform in the repo that changed with how to mitigate it manually.
yeah no I understand, or I dont, doesnt matter, I am not the specialist, I believe you! From now on I will just refrain from renaming repositories. Thanks!