/
/
/
1"""Constants for the Home Assistant PlayerProvider."""
2
3from __future__ import annotations
4
5from music_assistant_models.config_entries import ConfigEntry
6from music_assistant_models.enums import ConfigEntryType
7
8DOMAIN = "hass_players"
9
10CONF_PLAYERS = "players"
11
12# HA integrations that are known to not work (correctly) at all through this provider.
13BLOCKLISTED_HASS_INTEGRATIONS = ("alexa_media", "apple_tv")
14# HA integrations whose players are fully supported by a native Music Assistant
15# player provider: importing them here is blocked (use the native provider instead).
16NATIVE_SUPPORTED_HASS_INTEGRATIONS = (
17 "bluesound",
18 "cast",
19 "dlna_dmr",
20 "fully_kiosk",
21 "heos",
22 "linkplay",
23 "mpd",
24 "snapcast",
25 "sonos",
26 "squeezebox",
27 "yamaha_musiccast",
28)
29
30DISABLED_REASON_NATIVE_INTEGRATION = (
31 "Music Assistant has native support for this player type - "
32 "set up the native player provider instead."
33)
34DISABLED_REASON_NATIVE_DUPLICATE = (
35 "This device is already available in Music Assistant as a native player."
36)
37
38CONF_ENTRY_WARN_HASS_INTEGRATION = ConfigEntry(
39 key="warn_hass_integration",
40 type=ConfigEntryType.ALERT,
41)
42