Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing a dashboard repo doesn't clean up .storage/lovelace_resources #4211

Open
8 tasks done
rsteckler opened this issue Nov 19, 2024 · 1 comment
Open
8 tasks done
Labels
issue:backend For issues with the backend/integration

Comments

@rsteckler
Copy link

System Health details

System Information

version core-2024.11.1
installation_type Unknown
dev false
hassio false
docker false
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 5.15.0-71-generic
arch x86_64
timezone America/Los_Angeles
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
HACS Data ok
GitHub API Calls Remaining 4958
Installed Version 2.0.1
Stage running
Available Repositories 1462
Downloaded Repositories 15
AccuWeather
can_reach_server ok
remaining_requests 30
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Dashboards
dashboards 5
resources 7
views 14
mode storage
Recorder
oldest_recorder_run November 10, 2024 at 4:04 AM
current_recorder_run November 19, 2024 at 7:54 AM
estimated_db_size 1620.66 MiB
database_engine mysql
database_version 9.0.1
Spotify
api_endpoint_reachable ok

Checklist

  • I'm running the newest version of HACS https://github.com/hacs/integration/releases/latest
  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • I have read https://hacs.xyz/docs/help/issues/
  • This issue is related to the backend (integration part) of HACS.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This is a bug and not a feature request.
  • This issue is not a duplicate issue of currently open or issues pending release.

Describe the issue

Removing a dashboard repo from hacs leaves the old js file referenced in the lovelace config, leading to browser console errors

Reproduction steps

  1. Add a dashboard HACS item (e.g. upcoming-media-card)
  2. Remove it from your HACS installation
  3. Note console errors showing the card javascript can't be found:
    image
  4. Note the entry still exists in .storage/lovelace_resources
./.storage/lovelace_resources:        "url": "/hacsfiles/upcoming-media-card/upcoming-media-card.js?hacstag=146783593043",

Debug logs

let me know if needed

Diagnostics dump

No response

@rsteckler rsteckler added the issue:backend For issues with the backend/integration label Nov 19, 2024
@hacs-bot
Copy link

hacs-bot bot commented Nov 19, 2024

Make sure you have read the issue guidelines and that you filled out the entire template.

If you have an issue identical to this, do not add comments like "same here", "i have this too", instead add a 👍 reaction to the issue description. Thanks! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue:backend For issues with the backend/integration
Projects
None yet
Development

No branches or pull requests

1 participant