mirror of https://github.com/home-assistant/core
24 lines
514 B
Python
24 lines
514 B
Python
"""Constants for the Cambridge Audio integration."""
|
|
|
|
import asyncio
|
|
import logging
|
|
|
|
from aiostreammagic import StreamMagicConnectionError, StreamMagicError
|
|
|
|
DOMAIN = "cambridge_audio"
|
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
|
|
STREAM_MAGIC_EXCEPTIONS = (
|
|
StreamMagicConnectionError,
|
|
StreamMagicError,
|
|
asyncio.CancelledError,
|
|
TimeoutError,
|
|
)
|
|
|
|
CONNECT_TIMEOUT = 5
|
|
|
|
CAMBRIDGE_MEDIA_TYPE_PRESET = "preset"
|
|
CAMBRIDGE_MEDIA_TYPE_AIRABLE = "airable"
|
|
CAMBRIDGE_MEDIA_TYPE_INTERNET_RADIO = "internet_radio"
|