marcokreeft87 / room-card

Show multiple entity states, attributes and icons in a single card in Home Assistant's Lovelace UI
MIT License
228 stars 38 forks source link

Error cannot read properties of undefined (reading 'style') #269

Closed cherryocola closed 1 year ago

cherryocola commented 1 year ago

Which version of Room Card? 1.07.25

Describe the bug Random error message "Cannot read properties of undefined (reading 'style')" on one of the cards everytime I open the main page. I get these on both the browser and companion app. It pops up around 50% of the time.

To Reproduce Dont know.

Expected behavior

Screenshots

Cannot read properties

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

marcokreeft87 commented 1 year ago

Do you have template entities? It got to do with the timing when entities are available. I really can't do much to help you with this except for giving you some hints where to look

cherryocola commented 1 year ago

Do you have template entities? It got to do with the timing when entities are available. I really can't do much to help you with this except for giving you some hints where to look

Hi, no Template Entities. Heres the whole card.

type: custom:room-card title: 客廳 info_entities:

Any ideas? thanks in advance

cherryocola commented 1 year ago

Ok, I think its the custom:mini-media-player cause it doesnt happen when its hidden. Any idea how I could solve this? thanks

marcokreeft87 commented 1 year ago

Might be the unavailable condition for hiding. Not sure

marcokreeft87 commented 1 year ago

@cherryocola can you test it with v1.08.00 thanks to Scott ( don't know your github handle bro ) it should be fixed :)

marcokreeft87 commented 1 year ago

@cherryocola try v1.08.01 xD It's going fast

elninosi commented 1 year ago

Works for me. Thank you very much for fixing this bug.

On Sun, Oct 15, 2023, 19:23 Marco Kreeft @.***> wrote:

@cherryocola https://github.com/cherryocola try v1.08.01 xD It's going fast

— Reply to this email directly, view it on GitHub https://github.com/marcokreeft87/room-card/issues/269#issuecomment-1763453189, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACURVVDS6P4DTGZTQLDL4P3X7QLZPANCNFSM6AAAAAA5TT2IQA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

marcokreeft87 commented 1 year ago

Since it's confirmed by someone, I'm closing this bug. If it happens again let me know