Skip to content

Commit c71c604

Browse files
committed
Remove command_sender.send_action_registration arg redundancy
1 parent 6d81b36 commit c71c604

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

streamdeck/command_sender.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,6 @@ def send_to_plugin(
257257
def send_action_registration(
258258
self,
259259
register_event: str,
260-
plugin_registration_uuid: str,
261260
) -> None:
262261
"""Registers a plugin with the Stream Deck software very shortly after the plugin is started.
263262
@@ -270,10 +269,8 @@ def send_action_registration(
270269
Args:
271270
register_event (str): The registration event type, passed in by the Stream Deck software as -registerEvent option.
272271
It's value will almost definitely will be "registerPlugin".
273-
plugin_registration_uuid (str): Randomly-generated unique ID passed in by StreamDeck as -pluginUUID option,
274-
used to send back in the registerPlugin event. Note that this is NOT the manifest.json -configured plugin UUID value.
275272
"""
276273
self._send_event(
277274
event=register_event,
278-
uuid=plugin_registration_uuid,
275+
uuid=self._plugin_registration_uuid,
279276
)

streamdeck/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def run(self) -> None:
154154
self.register_event_listener(client)
155155

156156
command_sender = StreamDeckCommandSender(client, plugin_registration_uuid=self._registration_uuid)
157-
command_sender.send_action_registration(register_event=self._register_event, plugin_registration_uuid=self._registration_uuid)
157+
command_sender.send_action_registration(register_event=self._register_event)
158158

159159
for data in self._stream_event_data():
160160
# If the event is action-specific, we'll pass the action's uuid to the handler to ensure only the correct action is triggered.

0 commit comments

Comments
 (0)