/
/
/
1"""Shared constants for the config controller package."""
2
3from __future__ import annotations
4
5from typing import TypeVar
6
7from music_assistant_models.config_entries import ConfigValueType
8
9__all__ = [
10 "BASE_KEYS",
11 "DEFAULT_SAVE_DELAY",
12 "PLAYER_QUEUE_CONFIG_OWNER",
13 "_ConfigValueT",
14]
15
16DEFAULT_SAVE_DELAY = 5
17
18BASE_KEYS = ("enabled", "name", "available", "default_name", "provider", "type")
19
20# owner namespace for per-queue config entry strings (controllers/player_queues/strings.json)
21PLAYER_QUEUE_CONFIG_OWNER = "core.player_queues"
22
23# TypeVar for config value type inference
24_ConfigValueT = TypeVar("_ConfigValueT", bound=ConfigValueType)
25