Closed dawidblum closed 1 year ago
You're loading it twice. Check the resources you load (you need to enable the advanced mode in your user in the frontend and then navigate to: Settings -> Dashboard -> 3 dots on top right -> Resources)
I can still see it there, so it's not removed. You have to reload your resources also once it's done
This screenshot was with 4.0.0 dev version installed with hacs. When I uninstall button-card thru hacs there is no entry in resources named button-card but it still appears in console.
This screenshot was taken with button-card unistalled thru hacs and after relaod and HA restart. Button-card still appears in console.
Yes, because you have to update your resources from the dashboard 3 dot menu and then hard reload (CTRL + R on windows) the page.
That's what I did, the entry in console still appears. When I click on the response in console it shows this message:
Failed to load content from the source map https://raw.githubusercontent.com/home-assistant/frontend/20230705.2/src/panels/lovelace/cards/hui-ais-button-card.js (HTTP error - status code: 404, network::ERR_HTTP_RESPONSE_CODE_FAILURE)
Restart HA, but this has nothing to do with button-card. If it still loads it's because your resources are not refreshed, that's all. Removing it from the list is not enough.
Screenshot from freshly installed firefox browser. Please could you tell me how to refresh resources since I can't find any step by step instructions online
type should be type: custom:button-card
not type: button-card
Those screenshots are with button-card uninstalled thru hacs
What do I have to provide for you to help me out? Any logs or files?
hui-ais-button-card.js
(as you can see on the right of the javascript console) is not the button-card installed through HACS. I don't know where it comes from. My best guess is that some other card/custom_component is pulling directly this card from github as an import 🤷♂️
Please head over to the home assistant forum to ask for help.
So I looked further into this and you are not using home assistant but you are using their strange fork: https://github.com/sviete/AIS-home-assistant
From this company: http://www.ai-speaker.com/
Their fork embeds a lot of stuff, including this card, as is, without any credits.
Checklist
Describe the bug Uninstalling 3.5.0 version of Button-card leaves files in HA that affect new installs.
Version of the card Version: 4.0.0 Dev.10
To Reproduce Install 3.5.0 version, remove it after that it stays in web browers console. Orange text "Button Card". When installing 4.0.0 after that (or any other version) console provides this information:
This is the configuration I used:
Screenshots https://imgur.com/a/rhSxHr9
Expected behavior Button Card not appearing in console logs after uninstalling and clearing browser cache.
Desktop:
Smartphone: