Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for the Cambridge Audio integration."""
2 
3 import asyncio
4 import logging
5 
6 from aiostreammagic import StreamMagicConnectionError, StreamMagicError
7 
8 DOMAIN = "cambridge_audio"
9 
10 LOGGER = logging.getLogger(__package__)
11 
12 STREAM_MAGIC_EXCEPTIONS = (
13  StreamMagicConnectionError,
14  StreamMagicError,
15  asyncio.CancelledError,
16  TimeoutError,
17 )
18 
19 CONNECT_TIMEOUT = 5
20 
21 CAMBRIDGE_MEDIA_TYPE_PRESET = "preset"
22 CAMBRIDGE_MEDIA_TYPE_AIRABLE = "airable"
23 CAMBRIDGE_MEDIA_TYPE_INTERNET_RADIO = "internet_radio"