You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
button-card.js?hacstag=146194325412:426 TypeError: Cannot read properties of undefined (reading 'style')
at button-card.js?hacstag=146194325412:426:18867
at Ti._createCard (button-card.js?hacstag=146194325412:426:19038)
at button-card.js?hacstag=146194325412:445:213
at Array.forEach (<anonymous>)
at Ti._buildCustomFields (button-card.js?hacstag=146194325412:445:30)
at Ti._gridHtml (button-card.js?hacstag=146194325412:524:25)
at Ti._buttonContent (button-card.js?hacstag=146194325412:506:454)
at Ti._cardHtml (button-card.js?hacstag=146194325412:486:18)
at Ti.render (button-card.js?hacstag=146194325412:426:19509)
at Ti.update (button-card.js?hacstag=146194325412:1:14818)
button-card.js?hacstag=146194325412:426 Uncaught (in promise) TypeError: e.setConfig is not a function
at Ti.render (button-card.js?hacstag=146194325412:426:19640)
at Ti.update (button-card.js?hacstag=146194325412:1:14818)
at Ti.performUpdate (button-card.js?hacstag=146194325412:1:6145)
at Ti.scheduleUpdate (button-card.js?hacstag=146194325412:1:5792)
at Ti._$Ej (button-card.js?hacstag=146194325412:1:5700)
Screenshots
The text was updated successfully, but these errors were encountered:
I have the same problem. Unsure what’s causing it, but the error is more or less the same.
My dashboard has several views/tabs. If I refresh the tab with this exact card on, I get an error. If a different view/tab is active, I can refresh and switch to the troubling view/tab and everything is fine. This makes me think there is some timing issue.
EDIT: I believe I have narrowed it down to the picture card specifically. It may be a problem with other cards as well, but I managed to get entity cards and sensor cards working without this error. Switching the card back to a picture card immediately gives me the error again. Also, it does not matter how I reference the image. I have tried images served from HA, served from a different URL, and data URIs. They all give the same error.
Checklist
Describe the bug
Button card with custom_fields disappear when refreshing the page
HA 2024.3.0
To Reproduce
This is the configuration I used:
Screenshots
The text was updated successfully, but these errors were encountered: