Skip to content

Commit

Permalink
Update client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rao-aneesh authored Mar 26, 2024
1 parent 15648ee commit 5ae6be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygnmi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1426,7 +1426,7 @@ def construct_update_message(user_list: list, encoding: str) -> list:
if isinstance(ue, tuple):
u_path = gnmi_path_generator(ue[0])
u_val = json.dumps(ue[1]).encode("utf-8")
u_ascii_val = ue[1].encode("utf-8")
u_ascii_val = str(ue[1]).encode("utf-8")
encoding = encoding.lower() # Normalize to lower case
if encoding == "json":
result.append(Update(path=u_path, val=TypedValue(json_val=u_val)))
Expand Down

0 comments on commit 5ae6be0

Please sign in to comment.