NotImplementedError: Name is not supported for 'Version' Ayon Flow

Hi There. I am in the process of setting up Ayon at my current studio, have been getting a few funky errors and have managed to solve quite abit of them. My current predicament however is this little error. I would like to note that this is happening when im attempting to sync from Flow to Ayon.

Traceback (most recent call last):
  File "/service/processor/processor.py", line 251, in start_processing
    handler.process_event(
  File "/service/processor/handlers/sync_projects.py", line 34, in process_event
    hub.synchronize_projects(source=sync_source)
  File "/service/ayon_shotgrid_hub/__init__.py", line 281, in synchronize_projects
    match_shotgrid_hierarchy_in_ayon(
  File "/service/ayon_shotgrid_hub/match_shotgrid_hierarchy_in_ayon.py", line 150, in match_shotgrid_hierarchy_in_ayon
    if not _update_ay_entity(
           ^^^^^^^^^^^^^^^^^^
  File "/service/ayon_shotgrid_hub/match_shotgrid_hierarchy_in_ayon.py", line 232, in _update_ay_entity
    f"The AYON entity {ay_entity.name} <{ay_entity.id}> has the "  # noqa
                       ^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/ayon_api/entity_hub.py", line 1964, in get_name
    raise NotImplementedError(
NotImplementedError: Name is not supported for 'version'.

Now im assuming that in ayon Entities have a Name, except for versions which is what is causing this? I haven’t adjusted the .py script manually, and i dont want to force Ay_entity.entity_type “version” to default to a value if it shouldnt. I would like to find out what the correct method of approaching this from ayon or flow is and what i should change out of the box, or if this actually is a bug i’ve run into.

In shotgrid settings, you can specify which entites to sync where you can exclude version entites.
image

https://help.ayon.app/articles/2197103-flow-shotgrid-addon-settings

and, version entites should have a name.
Here’s an example.

import ayon_api

project_name = "AY_CG_demo"

folder_id = "e8f3f323eab5562ea8a1a0f91150886b"
task_id = "95d63b50363f11f0921f4b80b731229c"
version_id = "50a87fd8d59811eeb84f14ac6003f3c1"

folder_entity = ayon_api.get_folder_by_id(project_name, folder_id, fields={"name", "id"})
task_entity = ayon_api.get_task_by_id(project_name, task_id, fields={"name", "id"})
version_entity = ayon_api.get_version_by_id(project_name, version_id, fields={"name", "id"})

print(folder_entity)  # {'name': 'sh010', 'id': 'e8f3f323eab5562ea8a1a0f91150886b'}
print(task_entity)  # {'name': 'compositing', 'id': '95d63b50363f11f0921f4b80b731229c'}
print(version_entity)  # {'name': 'v006', 'id': '50a87fd8d59811eeb84f14ac6003f3c1', 'version': 6}

Ah thank you! Solved this issue rather quickly after posting, completely forgot to update the post. This was specifically being a cause of concern due to Assets having a version name, and that Entity not syncing due to what was described above.