Skip to content

@event_trigger decorator with 3 arguments  #519

Closed
@marshalltech81

Description

@marshalltech81

Following the documentation https://hacs-pyscript.readthedocs.io/en/latest/reference.html#event-trigger, it looks like the @event_decorator trigger accepts up to 3 arguments where the 3rd argument is the kwarg. However in attempting to do this, I receive an error that states decorator @event_trigger got 3 arguments, expected 1 or 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions