2019-09-05 17:50:26 +00:00
|
|
|
"""Constants for the Plex component."""
|
2019-10-01 15:20:30 +00:00
|
|
|
from homeassistant.const import __version__
|
|
|
|
|
2019-09-05 17:50:26 +00:00
|
|
|
DOMAIN = "plex"
|
2019-10-19 21:31:15 +00:00
|
|
|
NAME_FORMAT = "Plex ({})"
|
2020-02-12 17:55:18 +00:00
|
|
|
COMMON_PLAYERS = ["Plex Web"]
|
2021-03-31 16:37:16 +00:00
|
|
|
TRANSIENT_DEVICE_MODELS = ["Plex Web", "Plex for Sonos"]
|
2019-09-05 17:50:26 +00:00
|
|
|
|
|
|
|
DEFAULT_PORT = 32400
|
|
|
|
DEFAULT_SSL = False
|
|
|
|
DEFAULT_VERIFY_SSL = True
|
|
|
|
|
2020-06-17 19:04:47 +00:00
|
|
|
PLEXTV_THROTTLE = 60
|
|
|
|
|
2020-04-04 05:34:42 +00:00
|
|
|
DEBOUNCE_TIMEOUT = 1
|
2019-10-19 21:31:15 +00:00
|
|
|
DISPATCHERS = "dispatchers"
|
2020-10-14 13:46:52 +00:00
|
|
|
GDM_DEBOUNCER = "gdm_debouncer"
|
|
|
|
GDM_SCANNER = "gdm_scanner"
|
2019-11-23 15:16:21 +00:00
|
|
|
PLATFORMS = frozenset(["media_player", "sensor"])
|
|
|
|
PLATFORMS_COMPLETED = "platforms_completed"
|
2020-06-22 12:48:40 +00:00
|
|
|
PLAYER_SOURCE = "player_source"
|
2019-09-09 21:28:20 +00:00
|
|
|
SERVERS = "servers"
|
2019-10-25 16:37:50 +00:00
|
|
|
WEBSOCKETS = "websockets"
|
2019-09-09 21:28:20 +00:00
|
|
|
|
2019-09-05 17:50:26 +00:00
|
|
|
PLEX_SERVER_CONFIG = "server_config"
|
|
|
|
|
2019-10-21 08:44:07 +00:00
|
|
|
PLEX_NEW_MP_SIGNAL = "plex_new_mp_signal.{}"
|
2020-12-02 18:00:13 +00:00
|
|
|
PLEX_UPDATE_MEDIA_PLAYER_SESSION_SIGNAL = "plex_update_session_signal.{}"
|
2019-10-19 21:31:15 +00:00
|
|
|
PLEX_UPDATE_MEDIA_PLAYER_SIGNAL = "plex_update_mp_signal.{}"
|
2021-03-31 11:57:16 +00:00
|
|
|
PLEX_UPDATE_LIBRARY_SIGNAL = "plex_update_libraries_signal.{}"
|
2019-10-25 16:37:50 +00:00
|
|
|
PLEX_UPDATE_PLATFORMS_SIGNAL = "plex_update_platforms_signal.{}"
|
2019-10-21 08:44:07 +00:00
|
|
|
PLEX_UPDATE_SENSOR_SIGNAL = "plex_update_sensor_signal.{}"
|
2019-10-19 21:31:15 +00:00
|
|
|
|
2019-09-11 18:21:08 +00:00
|
|
|
CONF_SERVER = "server"
|
2019-09-19 21:29:26 +00:00
|
|
|
CONF_SERVER_IDENTIFIER = "server_id"
|
2019-09-05 17:50:26 +00:00
|
|
|
CONF_USE_EPISODE_ART = "use_episode_art"
|
2020-02-19 00:46:45 +00:00
|
|
|
CONF_IGNORE_NEW_SHARED_USERS = "ignore_new_shared_users"
|
2020-05-08 16:49:15 +00:00
|
|
|
CONF_IGNORE_PLEX_WEB_CLIENTS = "ignore_plex_web_clients"
|
2020-02-19 00:46:45 +00:00
|
|
|
CONF_MONITORED_USERS = "monitored_users"
|
2019-10-01 15:20:30 +00:00
|
|
|
|
|
|
|
AUTH_CALLBACK_PATH = "/auth/plex/callback"
|
|
|
|
AUTH_CALLBACK_NAME = "auth:plex:callback"
|
|
|
|
|
|
|
|
X_PLEX_DEVICE_NAME = "Home Assistant"
|
|
|
|
X_PLEX_PLATFORM = "Home Assistant"
|
|
|
|
X_PLEX_PRODUCT = "Home Assistant"
|
|
|
|
X_PLEX_VERSION = __version__
|
2020-05-05 22:42:21 +00:00
|
|
|
|
|
|
|
AUTOMATIC_SETUP_STRING = "Obtain a new token from plex.tv"
|
|
|
|
MANUAL_SETUP_STRING = "Configure Plex server manually"
|
2020-05-27 22:36:08 +00:00
|
|
|
|
2020-09-02 18:56:41 +00:00
|
|
|
SERVICE_REFRESH_LIBRARY = "refresh_library"
|
2020-09-03 07:35:37 +00:00
|
|
|
SERVICE_SCAN_CLIENTS = "scan_for_clients"
|
2020-10-19 21:34:22 +00:00
|
|
|
|
|
|
|
PLEX_URI_SCHEME = "plex://"
|