You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if check_is_list_entity(data_type):
if isinstance(data, list) and isinstance(data[0], dict):
return [Entity(child, name) for child in data]
raise TypeError(
"Attribute '{}' of Entity '{}' expected to be a list of dictionaries.".format(
name, self.type_name
)
)
are all set to the name of the parent attribute.
Example
Changing the timer event parse method to accept an actions attribute of data_type=List[Entity] then the above code using following launch.yaml
Bug report
The
get_attr
method from the YAML entity looks wrong to me when usingdata_type=List[Entity]
.The names of the entities returned by following section
are all set to the name of the parent attribute.
Example
Changing the timer event parse method to accept an
actions
attribute ofdata_type=List[Entity]
then the above code using following launch.yamlcreates for each log entity an entity with
type_name=actions
instead oftype_name=log
.The
children
property inside this entity class implements the correct (expected) logic.Is this logic intended or a bug?
The text was updated successfully, but these errors were encountered: