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

after use browser_mod,use entity_picture error #869

Open
1 task
flamestsui opened this issue Aug 29, 2024 · 3 comments
Open
1 task

after use browser_mod,use entity_picture error #869

flamestsui opened this issue Aug 29, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@flamestsui
Copy link

flamestsui commented Aug 29, 2024

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.

@flamestsui flamestsui added the bug Something isn't working label Aug 29, 2024
@dkirby-ms
Copy link

I've got a similar issue with button card that started after the September HA update.

@Homeboy05
Copy link

Same here

@riegera2412
Copy link

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é

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants
@flamestsui @dkirby-ms @riegera2412 @Homeboy05 and others