Skip to content

Commit

Permalink
Merge pull request #45 from noahhusby/docs/pdoc
Browse files Browse the repository at this point in the history
Seperate args
  • Loading branch information
noahhusby authored Sep 24, 2024
2 parents af7b2b6 + 80b04ac commit b209b3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aiorussound/rio.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ async def unwatch(self) -> str:

async def send_event(self, event_name, *args) -> str:
"""Send an event to a zone."""
cmd = f"EVENT {self.device_str()}!{event_name} {" ".join(str(x) for x in args)}"
args = " ".join(str(x) for x in args)
cmd = f"EVENT {self.device_str()}!{event_name} {args}"
return await self.client.connection_handler.send(cmd)

def _get(self, variable, default=None) -> str:
Expand Down

0 comments on commit b209b3b

Please sign in to comment.