You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Defines the controller type the action is applicable to.
88
+
89
+
'Keypad' refers to a standard action on a Stream Deck device, e.g. buttons or a pedal.
90
+
'Encoder' refers to a dial / touchscreen on a 'Stream Deck +' device.
91
+
"""
92
+
settings: PluginDefinedData
93
+
"""Settings associated with the action instance."""
94
+
95
+
96
+
classBaseActionPayload(BasePayload[CT], ABC):
97
+
"""Base class for payloads of action events."""
98
+
99
+
state: Optional[int] =None# noqa: UP007
100
+
"""Current state of the action.
101
+
102
+
Only applicable to actions that have multiple states defined within the manifest.json file.
103
+
"""
104
+
105
+
69
106
classSingleActionPayloadMixin:
70
107
"""Mixin class for event models that have a single action payload."""
71
108
@@ -88,36 +125,3 @@ class MultiActionPayloadMixin:
88
125
Field(discriminator="is_in_multi_action"),
89
126
]
90
127
"""Generic type for a payload that either subclasses SingleActionPayloadMixin or MultiActionPayloadMixin—meaning it can be either a single action or a multi-action."""
0 commit comments