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"]
|
2019-09-05 17:50:26 +00:00
|
|
|
|
|
|
|
DEFAULT_PORT = 32400
|
|
|
|
DEFAULT_SSL = False
|
|
|
|
DEFAULT_VERIFY_SSL = True
|
|
|
|
|
2019-10-19 21:31:15 +00:00
|
|
|
DISPATCHERS = "dispatchers"
|
2019-11-23 15:16:21 +00:00
|
|
|
PLATFORMS = frozenset(["media_player", "sensor"])
|
|
|
|
PLATFORMS_COMPLETED = "platforms_completed"
|
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
|
|
|
|
|
|
|
PLEX_MEDIA_PLAYER_OPTIONS = "plex_mp_options"
|
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.{}"
|
2019-10-19 21:31:15 +00:00
|
|
|
PLEX_UPDATE_MEDIA_PLAYER_SIGNAL = "plex_update_mp_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-10-23 06:32:57 +00:00
|
|
|
CONF_CLIENT_IDENTIFIER = "client_id"
|
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"
|
|
|
|
CONF_SHOW_ALL_CONTROLS = "show_all_controls"
|
2020-02-19 00:46:45 +00:00
|
|
|
CONF_IGNORE_NEW_SHARED_USERS = "ignore_new_shared_users"
|
|
|
|
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-04-03 04:02:27 +00:00
|
|
|
|
|
|
|
COMMAND_MEDIA_TYPE_MUSIC = "music"
|
|
|
|
COMMAND_MEDIA_TYPE_VIDEO = "video"
|