/
/
/
1"""Constants for the Sendspin provider."""
2
3from __future__ import annotations
4
5BRIDGE_PREFIX = "spb_"
6VIRTUAL_PLAYER_ID_PREFIX = "sendspin_virtual_"
7
8CONF_SENDSPIN_STATIC_DELAY = "sendspin_static_delay"
9CONF_VIRTUAL_PLAYER_OWNER = "virtual_player_owner"
10DEFAULT_SENDSPIN_STATIC_DELAY = 0
11
12CONF_ALLOW_LEGACY_CLIENTS = "allow_legacy_clients"
13CONF_MIN_PIN_LENGTH = "min_pin_length"
14DEFAULT_MIN_PIN_LENGTH = 4
15
16# Pairing method the setup flow lets the user pick between.
17CONF_PAIRING_METHOD = "pairing_method"
18PAIR_METHOD_PIN = "pin"
19PAIR_METHOD_DYNAMIC_PIN = "dynamic_pin"
20PAIR_METHOD_STATIC_PIN = "static_pin"
21# The consent step's choice between connecting straight away and pairing first.
22CONF_CONNECT_METHOD = "connect_method"
23CONNECT_METHOD_UNPAIRED = "unpaired"
24CONNECT_METHOD_PAIR = "pair"
25
26# The setup flow step for a device whose audio input awaits a decision.
27CONF_SOURCE_INPUT_ACTION = "source_input_action"
28SOURCE_INPUT_PAIR = "pair"
29SOURCE_INPUT_DISMISS = "dismiss"
30# Persisted (raw player config) marker that the user declined the audio input.
31CONF_SOURCE_APPROVAL_DISMISSED = "source_approval_dismissed"
32
33CONF_PAIRING_PIN = "pairing_pin"
34
35CONF_ACTION_UNPAIR = "unpair"
36
37CONF_ACTION_MANAGEMENT_ENTER = "management_enter"
38CONF_ACTION_MANAGEMENT_EXIT = "management_exit"
39CONF_ACTION_MANAGEMENT_STATIC_PIN_ENABLE = "management_static_pin_enable"
40CONF_ACTION_MANAGEMENT_STATIC_PIN_DISABLE = "management_static_pin_disable"
41CONF_ACTION_MANAGEMENT_DYNAMIC_PIN_ENABLE = "management_dynamic_pin_enable"
42CONF_ACTION_MANAGEMENT_DYNAMIC_PIN_DISABLE = "management_dynamic_pin_disable"
43
44# Declared here because only the player provider can add player config entries.
45CONF_SOURCE_AUTOSTART_TARGET = "source_autostart_target"
46SOURCE_AUTOSTART_OFF = "off"
47