after use browser_mod,use entity_picture error
Checklist
- [ √] I updated the card to the latest version available
- [ ] I cleared the cache of my browser
Describe the bug
ButtonCardJSTemplateError: TypeError: Cannot read properties of undefined (reading 'state') in 'if (entity.state == "on") return "/local/house/samba.png"; else return "/local/house/samba_clo...' Ti.eval (/hacsfiles/button-card/button-card.js:434:2161) Ti._evalTemplate (/hacsfiles/button-card/button-card.js:434:2257) Ti._getTemplateOrValue (/hacsfiles/button-card/button-card.js:434:2877) /hacsfiles/button-card/button-card.js:559:2699 l (/hacsfiles/button-card/button-card.js:559:2641) /hacsfiles/button-card/button-card.js:559:2681 l (/hacsfiles/button-card/button-card.js:559:2641) /hacsfiles/button-card/button-card.js:559:2681
Version of the card Version: 4.1.2
To Reproduce This is the configuration I used:
See Attachment
button.txt Screenshots If applicable, add screenshots to help explain your problem.
Expected behavior A clear and concise description of what you expected to happen.
Desktop (please complete the following information):
- Browser [Chrome]
- Version [128.0.6613.85]
Additional context Add any other context about the problem here.
I've got a similar issue with button card that started after the September HA update.
Same here
Same here!
Just updated to 2024.9.1 from 2024.8.3 yesterday. After that the card wasnt loaded on either browser or the companion app. A google search and older issues here seem to link this to the availability of the hass object. In the issues I found here it seems that it requires some changes in the depths of button-card. Unfortunately I am not much of a programming guy who could do that.
Would really appreciate any insight that might help.
Beste regards, André
Hi, checking if this is still an issue. Make sure you are running the latest Browser Mod.
This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 28 days with no activity.