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

Optional entities #100

Open
rob1998 opened this issue Oct 11, 2022 · 0 comments
Open

Optional entities #100

rob1998 opened this issue Oct 11, 2022 · 0 comments

Comments

@rob1998
Copy link

rob1998 commented Oct 11, 2022

I was wondering if it's possible to make entities optional. Something like adding a {%if entity_id != undefined} in the blueprint.
I'm using the person popup blueprint, but have some persons without a charging entity. If I just leave them empty the rest of the popup works, but it displays an ugly error.

Tried some things myself for a bit, but couldn't work it out. Might have been stupid and just overlooked the function to check if an entity exists.

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