Custom attributes on entities should be dynamic and editable via templates etc. like all other attributes.
homeassistant:
customize:
person.me:
- my_attribute: myvalue
- my_second_attribute:
- mysecondvalue_one
- mysecondvalue_two
This has been a FeatureRequest back in 2019