Skip to content

Commit

Permalink
Allow ByteString Variant to be None
Browse files Browse the repository at this point in the history
  • Loading branch information
ldet authored and oroulet committed Dec 22, 2023
1 parent 2268ac9 commit b9e2af4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions asyncua/ua/uatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,7 @@ def __post_init__(self):
VariantType.String,
VariantType.DateTime,
VariantType.ExtensionObject,
VariantType.ByteString,
):
raise UaError(
f"Non array Variant of type {self.VariantType} cannot have value None"
Expand Down

0 comments on commit b9e2af4

Please sign in to comment.