Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: NodeId change for class DataValue #1786

Merged
merged 2 commits into from
Feb 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion asyncua/ua/uatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
from enum import IntEnum
from typing import Any, Generic, List, Optional, Union

from asyncua.ua.object_ids import ObjectIds

# hack to support python < 3.8
if sys.version_info.minor < 10:

Expand Down Expand Up @@ -1087,7 +1089,7 @@ class DataValue:
:vartype ServerPicoseconds: int
"""

data_type = NodeId(25)
data_type = NodeId(Int32(ObjectIds.DataValue))

Encoding: Byte = field(default=0, repr=False, init=False, compare=False)
Value: Optional[Variant] = None
Expand Down
Loading