diff --git a/model/redhawk.py b/model/redhawk.py index 81d7e96..f799ccb 100644 --- a/model/redhawk.py +++ b/model/redhawk.py @@ -26,6 +26,8 @@ from _utils.tasking import background_task +from ossie.properties import __TYPE_MAP as TYPE_MAP + from domain import Domain, scan_domains, ResourceNotFound @@ -106,7 +108,8 @@ def component_configure(self, domain_name, app_id, comp_id, new_properties): for prop in comp._properties: if prop.id in new_properties: if new_properties[prop.id] != prop.queryValue(): - configure_changes[prop.id] = (type(prop.queryValue()))(new_properties[prop.id]) + TYPE = TYPE_MAP.get(prop.type, [type(prop.queryValue())]) + configure_changes[prop.id] = (TYPE[0])(new_properties[prop.id]) return comp.configure(configure_changes)