set_change_event as an attribute class argument

I wonder if it would be easier to define set_change_event mechanism when defining attributes. E.g:

class MyDevice(Device)
    @attribute(
        label="My Attribute",
        dtype=int,
        change_event_implement=True,
        change_event_detect=False,
    )
    def myAttribute(self)
        return self.my_attribute
Edited Sep 19, 2023 by Michael
Assignee Loading
Time tracking Loading