mirror of
https://github.com/FreeOpcUa/opcua-asyncio
synced 2025-10-29 17:07:18 +08:00
some formatting
This commit is contained in:
parent
1a95931e71
commit
4abf90cf21
|
|
@ -74,7 +74,7 @@ async def _rdesc_from_node(parent: asyncua.Node, node: asyncua.Node) -> ua.Refer
|
|||
if res.Value is None:
|
||||
raise UaInvalidParameterError("Value must not be None if the result is in Good status")
|
||||
variants.append(res.Value)
|
||||
nclass, qname, dname = [v.Value for v in variants]
|
||||
nclass, qname, dname = (v.Value for v in variants)
|
||||
rdesc = ua.ReferenceDescription()
|
||||
rdesc.NodeId = node.nodeid
|
||||
rdesc.BrowseName = qname
|
||||
|
|
|
|||
|
|
@ -420,7 +420,7 @@ async def _lsprint_long(pnode, depth, indent=""):
|
|||
ua.AttributeIds.Value,
|
||||
]
|
||||
)
|
||||
name, bname, nclass, mask, umask, dtype, val = [attr.Value.Value for attr in attrs]
|
||||
name, bname, nclass, mask, umask, dtype, val = (attr.Value.Value for attr in attrs)
|
||||
update = attrs[-1].ServerTimestamp
|
||||
if nclass == ua.NodeClass.Variable:
|
||||
print(
|
||||
|
|
|
|||
|
|
@ -885,5 +885,3 @@ class BadMaxConnectionsReached(UaStatusCodeError):
|
|||
|
||||
class BadDataSetIdInvalid(UaStatusCodeError):
|
||||
code = 0x80E70000
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ from dataclasses import dataclass, field
|
|||
from asyncua.ua.uatypes import FROZEN
|
||||
from asyncua.ua.uatypes import SByte, Byte, Bytes, ByteString, Int16, Int32, Int64, UInt16, UInt32
|
||||
from asyncua.ua.uatypes import UInt64, Boolean, Float, Double, Null, String, CharArray, DateTime, Guid
|
||||
from asyncua.ua.uatypes import AccessLevel, EventNotifier
|
||||
from asyncua.ua.uatypes import AccessLevel, EventNotifier
|
||||
from asyncua.ua.uatypes import LocalizedText, Variant, QualifiedName, StatusCode, DataValue
|
||||
from asyncua.ua.uatypes import RelativePath, RelativePathElement
|
||||
from asyncua.ua.uatypes import NodeId, FourByteNodeId, ExpandedNodeId, ExtensionObject, DiagnosticInfo
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user