class documentation

class AttributesMixin(Generic[AttributesType]):

View In Hierarchy

Mixin for UaObject with attributes.

Method __init_subclass__ Extract type for attributes.
Async Method add_attribute_variable Add a new monitoring variable to this UaObject.
Async Method lifecycle_attributes Initialize the attributes UaVariableContainer.
Property attributes Return the attributes UaVariableContainer. Read-only property.
Class Variable __attributes Undocumented
def __init_subclass__(cls, **kwargs):

Extract type for attributes.

@deprecated('Please use a typed Attributes subclass instead!')
async def add_attribute_variable(self, name: str, val: Any, *, varianttype: ua.VariantType | None = None, datatype: ua.NodeId | int | None = None, historize: bool = False, unit: str | int | None = None, _range: tuple[float, float] | None = None) -> Node:

Add a new monitoring variable to this UaObject.

@lifecycle
async def lifecycle_attributes(self) -> AsyncGenerator[None]:

Initialize the attributes UaVariableContainer.

@property
attributes: AttributesType =

Return the attributes UaVariableContainer. Read-only property.

__attributes: AttributesType | None =

Undocumented