Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
picture cards: add person image support #20593
picture cards: add person image support #20593
Changes from 7 commits
463d0b6
415c36c
ce2bbf4
87c8eb7
b9998e7
b38d0f8
44c6b52
c0d1213
75c1632
349b116
0eb8b77
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ensure the
attributes
field fromfetchPersons
is properly handled in all calling contexts.Would you like me to help implement or verify this handling?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Quentame, it appears that the
attributes
field from thePersonEntity
is not directly referenced or manipulated in theha-config-person.ts
file or other related components in thesrc/panels/config/person/
directory. This suggests that the handling of theattributes
field might be abstracted elsewhere or not required in the current context of thefetchPersons
usage.If there are specific functionalities or components where you expect the
attributes
field to be used, please let me know, and I can further investigate those areas. Otherwise, the current implementation inha-config-person.ts
seems to focus primarily on sorting and managing person data without directly interacting with the detailed attributes ofPersonEntity
.Analysis chain
Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 2122
Script:
Length of output: 62
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently, picture entity cards are already used for person entities. The default generated lovelace config adds picture entity cards for every known person. If that person entity doesn't have a picture, entity_picture is undefined and it should fallback to the this._config.image.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in
349b1160eb8b77 (Ups 😄)