Skip to content

Fix dashboard not rendering if state of RMV-entity is undefined#12

Open
Nuhser wants to merge 10 commits intocustom-cards:masterfrom
Nuhser:master
Open

Fix dashboard not rendering if state of RMV-entity is undefined#12
Nuhser wants to merge 10 commits intocustom-cards:masterfrom
Nuhser:master

Conversation

@Nuhser
Copy link

@Nuhser Nuhser commented Jan 26, 2026

Fixes #4

I added some checks to make sure that no error occurs if the state of the card's entity is undefined. This happened to me in the past if the RMV-API wasn't available but could also be caused by other things (like using the wrong entity ID in the configuration).

I added a fallback where the entity ID from the card configuration would be used as the card title if no custom name is set and the state of the entity is undefined. An error was occurring here previously as the attribute friendly_name of the state was used without checking if state had a value.

I also added an error message (see screenshot) which is shown instead of the normal table inside the card in case of an undefined state to inform the user that something went wrong.

image

@Nuhser Nuhser changed the title Fixes #4 - Dashboard not rendering if state of RMV-entity is undefined Fix dashboard not rendering if state of RMV-entity is undefined Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RMV card turns Dashboard blank

1 participant