Skip to content

Commit

Permalink
Change remote_set_volume to google-style
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Dec 3, 2023
1 parent 21a1388 commit 8eb392c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions jellyfin_apiclient_python/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,10 +527,13 @@ def remote_play_media(
)

def remote_set_volume(self, id: str, volume: int, json={}):
"""Set the volume on the sessions.
"""
Set the volume on the sessions.
@id: The session id to control
@volume: The volume normalized from 0 to 100"""
Args:
id (int): The session id to control
volume (int): The volume normalized from 0 to 100
"""
return self.command(id, "SetVolume", json={"Volume": volume, **json})

def remote_mute(self, id):
Expand Down

0 comments on commit 8eb392c

Please sign in to comment.