Skip to content
Snippets Groups Projects
Commit fdae1146 authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-465: Support get_node([]) to avoid a breaking edge case

parent 87cfaba0
No related branches found
No related tags found
1 merge request!179Resolve L2SS-465 "Lookup nodes in bulk"
...@@ -136,6 +136,9 @@ class OPCUAConnection(AsyncCommClient): ...@@ -136,6 +136,9 @@ class OPCUAConnection(AsyncCommClient):
async def get_node(self, path): async def get_node(self, path):
""" Retrieve an OPC-UA node from either the cache, or the server. """ """ Retrieve an OPC-UA node from either the cache, or the server. """
if not path:
return self.obj
cache_key = ",".join(path) cache_key = ",".join(path)
# lookup in cache # lookup in cache
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment