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

"Cannot read properties of undefined (reading 'state')" #169

Closed
1 task
PeterGrace opened this issue Oct 8, 2022 · 3 comments
Closed
1 task

"Cannot read properties of undefined (reading 'state')" #169

PeterGrace opened this issue Oct 8, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@PeterGrace
Copy link

Bug report notice

  • Yes, I'm sure that it is not a configuration mistake (Maybe? How do I know what I don't know?)

Bug description

As mentioned in #161, after fixing the templates issue I am now stuck with the below error message, "Cannot read properties of undefined (reading 'state').

The same behavior is shown in the Android home assistant application.

To Reproduce

Steps to reproduce the behavior:

  1. Attempt to load any VSAK view, regardless of template or not.
  2. See error

Expected behavior

Proper rendering of information from sensor states in the visualization

Screenshots

image

Desktop browser (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: 106.0.5249.91

Companion App on Smartphone/Tablet (please complete the following information):

  • Device: Samsung Galaxy S21 Ultra
  • OS: Android
@PeterGrace PeterGrace added the bug Something isn't working label Oct 8, 2022
@github-actions
Copy link

github-actions bot commented Oct 8, 2022

Thank you for creating your first issue for the Swiss Army Knife custom card!

@Symbiot78
Copy link

@PeterGrace - I had the same issue. Reason was that the entity did not exist.

@PeterGrace
Copy link
Author

I can confirm that this error occurs if one or more sensors in your config don't exist. In my case, I had a linkquality sensor configured which was disabled and as a result it caused the whole template to fail rendering. Thanks @Symbiot78 !!!

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

2 participants