From fa32a96fea12dbe63b4da7f0294dfc6ec224d64b Mon Sep 17 00:00:00 2001 From: Neelam Kushwah Date: Wed, 19 Jun 2024 14:14:04 -0400 Subject: [PATCH] Resolve incompatible priority issue by typecasting string to int --- uprotocol/cloudevent/factory/ucloudevent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uprotocol/cloudevent/factory/ucloudevent.py b/uprotocol/cloudevent/factory/ucloudevent.py index 168c9ee..8d2a465 100644 --- a/uprotocol/cloudevent/factory/ucloudevent.py +++ b/uprotocol/cloudevent/factory/ucloudevent.py @@ -596,7 +596,7 @@ def to_message(event: CloudEvent) -> UMessage: priority = "UPRIORITY_" + priority if priority is not None: - attributes.priority = priority + attributes.priority = UPriority.Value(priority) sink = UCloudEvent.get_sink(event) if sink is not None: