Plex external config flow (#26936)
* Plex external auth config flow * Update requirements_all * Test dependency * Bad await, delay variable * Use hass aiohttp session, bump plexauth * Bump requirements * Bump library version again * Use callback view instead of polling * Update tests for callback view * Reduce timeout with callback * Review feedback * F-string * Wrap sync call * Unused * Revert unnecessary async wrap
This commit is contained in:
1 parent
c1851a2d94
commit
571ab5a978
10 files changed
+267
-77
No files matched your search
@@ -11,9 +11,21 @@ from .const import (
|
||||
CONF_SHOW_ALL_CONTROLS,
|
||||
CONF_USE_EPISODE_ART,
|
||||
DEFAULT_VERIFY_SSL,
|
||||
X_PLEX_DEVICE_NAME,
|
||||
X_PLEX_PLATFORM,
|
||||
X_PLEX_PRODUCT,
|
||||
X_PLEX_VERSION,
|
||||
)
|
||||
from .errors import NoServersFound, ServerNotSpecified
|
||||
|
||||
# Set default headers sent by plexapi
|
||||
plexapi.X_PLEX_DEVICE_NAME = X_PLEX_DEVICE_NAME
|
||||
plexapi.X_PLEX_PLATFORM = X_PLEX_PLATFORM
|
||||
plexapi.X_PLEX_PRODUCT = X_PLEX_PRODUCT
|
||||
plexapi.X_PLEX_VERSION = X_PLEX_VERSION
|
||||
plexapi.myplex.BASE_HEADERS = plexapi.reset_base_headers()
|
||||
plexapi.server.BASE_HEADERS = plexapi.reset_base_headers()
|
||||
|
||||
|
||||
class PlexServer:
|
||||
"""Manages a single Plex server connection."""
|
||||
|
||||
Reference in new issue
Block a user