mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 06:04:15 +00:00
Fix MyPlexPinLogin doc strings (#1336)
This commit is contained in:
parent
654ed506f4
commit
dfc54718d1
1 changed files with 5 additions and 1 deletions
|
@ -1704,7 +1704,9 @@ class MyPlexPinLogin:
|
|||
|
||||
@property
|
||||
def pin(self):
|
||||
""" Return the 4 character PIN used for linking a device at https://plex.tv/link. """
|
||||
""" Return the 4 character PIN used for linking a device at
|
||||
https://plex.tv/link.
|
||||
"""
|
||||
if self._oauth:
|
||||
raise BadRequest('Cannot use PIN for Plex OAuth login')
|
||||
return self._code
|
||||
|
@ -1736,6 +1738,7 @@ class MyPlexPinLogin:
|
|||
|
||||
def run(self, callback=None, timeout=None):
|
||||
""" Starts the thread which monitors the PIN login state.
|
||||
|
||||
Parameters:
|
||||
callback (Callable[str]): Callback called with the received authentication token (optional).
|
||||
timeout (int): Timeout in seconds waiting for the PIN login to succeed (optional).
|
||||
|
@ -1758,6 +1761,7 @@ class MyPlexPinLogin:
|
|||
|
||||
def waitForLogin(self):
|
||||
""" Waits for the PIN login to succeed or expire.
|
||||
|
||||
Parameters:
|
||||
callback (Callable[str]): Callback called with the received authentication token (optional).
|
||||
timeout (int): Timeout in seconds waiting for the PIN login to succeed (optional).
|
||||
|
|
Loading…
Reference in a new issue