From ea2eeb882a7d94a882e6f6681f9c96fad7296e3a Mon Sep 17 00:00:00 2001 From: Tomasz Noczynski <88330807+tnoczyns-volue@users.noreply.github.com> Date: Fri, 5 Jan 2024 10:05:18 +0100 Subject: [PATCH] Changes after switching to Mesh 2.11 (#386) --- README.md | 2 ++ src/volue/mesh/_attribute.py | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7ccc3bcc..99a5c7c2 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/src/volue/mesh/_attribute.py b/src/volue/mesh/_attribute.py index 402421e2..f829f342 100644 --- a/src/volue/mesh/_attribute.py +++ b/src/volue/mesh/_attribute.py @@ -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")