-
Notifications
You must be signed in to change notification settings - Fork 442
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
Person card custom zones do not work #41
Comments
I tested this change and it seems to work. |
Thanks for your investigation! That should be fixed with: #87 |
Closed in v1.0.0-beta.8 🏳️🌈 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using the person card with custom zones defined, the card will crash with the following error if the person is in one of the custom zones:
Taking a peek at the code, it looks like this is because the custom zones defined (ulm_card_person_zone1, and ulm_card_person_zone2) need to be the friendly name of the zones to match the persons state, but then the zone entity is tried to look up with just the friendly name. Suggested fix would be to have the ulm_card_person_zone1 variables be defined as the actual zone, i.e.
zone.work
, then tweak the icon lookup function to something like this: (beware, I'm not a js developer, so it might need some further tweaks)The text was updated successfully, but these errors were encountered: