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

TypeError when creating Entity #25

Open
piegamesde opened this issue Jan 26, 2022 · 1 comment
Open

TypeError when creating Entity #25

piegamesde opened this issue Jan 26, 2022 · 1 comment

Comments

@piegamesde
Copy link

Jan 26 01:24:23 hass[21981]: 2022-01-26 01:24:23 ERROR (MainThread) [frontend.js.latest.202112200] http://localhost:8123/local/check-button-card.js:592:60 Uncaught TypeError: Cannot read properties of undefined (reading 'toString')

I created some buttons in the configuration. I get "Entity doesn't exist. Create?". I click the check mark. It then says "NaN days ago" and prints the above error message into the log. After reloading, it is again at "Entity doesn't exist. Create?".

@piegamesde
Copy link
Author

Okay I think I found the root cause: I was using sensors.foo.bar as the entity name. The application created a sensors.foo entity instead and then got confused. I changed the name to sensors.foo_bar and now it works fine again.

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

No branches or pull requests

1 participant