Skip to content

Commit

Permalink
Changes after switching to Mesh 2.11 (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
tnoczyns-volue authored Jan 5, 2024
1 parent bfc4408 commit ea2eeb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ Mesh Python SDK is a client library used to communicate with Volue Energy's Mesh
- [How to do development](https://volue-public.github.io/energy-mesh-python/installation.html#setup-for-developers)

:blue_book: [Documentation](https://volue-public.github.io/energy-mesh-python/)

Master version of the Mesh Python SDK requires at least 2.11 version of Volue Energy's Mesh server.
5 changes: 3 additions & 2 deletions src/volue/mesh/_attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ def __init__(
self.id: uuid.UUID = _from_proto_guid(proto_attribute.id)
self.path: str = proto_attribute.path
self.name: str = proto_attribute.name
# owner_id field is always set starting from Mesh 2.11
# TODO: Remove the check if the owner_id field exists when we move to support Mesh >= 2.11
# owner_id field is always set starting from Mesh 2.13
# TODO: Remove the check if the owner_id field exists when we move to support Mesh >= 2.13
# See: https://github.com/Volue/energy-mesh/pull/4755
self.owner_id = (
_from_proto_guid(proto_attribute.owner_id.id)
if proto_attribute.HasField("owner_id")
Expand Down

0 comments on commit ea2eeb8

Please sign in to comment.