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 ({})"
|
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-09-09 21:28:20 +00:00
|
|
|
PLATFORMS = ["media_player", "sensor"]
|
2019-09-22 21:47:41 +00:00
|
|
|
REFRESH_LISTENERS = "refresh_listeners"
|
2019-09-09 21:28:20 +00:00
|
|
|
SERVERS = "servers"
|
|
|
|
|
2019-09-05 17:50:26 +00:00
|
|
|
PLEX_CONFIG_FILE = "plex.conf"
|
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-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"
|
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__
|