Module homey.flow_argument

Classes

class FlowArgument

An argument for a flow card as defined in the app's app.json.

This class must not be initialized by the developer, but retrieved by calling FlowCard.get_argument().

Ancestors

Methods

def register_autocomplete_listener(self, listener: ArgumentAutoCompleteListener) ‑> None

Register an autocomplete listener for this argument.

Args

listener
An async ArgumentAutoCompleteListener for when an autocomplete value is requested for this argument. It receives the query typed by the user, as well as any arguments in the flow card, as currently selected by the user, serialized as json.

Raises

AlreadyExists
Raised if a listener was already registered for this argument.

Inherited members