Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants used for Russound RIO."""
2 
3 import asyncio
4 
5 from aiorussound import CommandError
6 from aiorussound.const import FeatureFlag
7 
8 from homeassistant.components.media_player import MediaPlayerEntityFeature
9 
10 DOMAIN = "russound_rio"
11 
12 RUSSOUND_RIO_EXCEPTIONS = (
13  CommandError,
14  ConnectionRefusedError,
15  TimeoutError,
16  asyncio.CancelledError,
17 )
18 
19 
20 CONNECT_TIMEOUT = 15
21 
22 MP_FEATURES_BY_FLAG = {
23  FeatureFlag.COMMANDS_ZONE_MUTE_OFF_ON: MediaPlayerEntityFeature.VOLUME_MUTE
24 }