2024-07-10 21:02:33 +00:00
|
|
|
"""Constants used for Russound RIO."""
|
|
|
|
|
|
|
|
import asyncio
|
|
|
|
|
2024-09-06 13:22:39 +00:00
|
|
|
from aiorussound import CommandError
|
2024-07-23 16:37:24 +00:00
|
|
|
from aiorussound.const import FeatureFlag
|
|
|
|
|
|
|
|
from homeassistant.components.media_player import MediaPlayerEntityFeature
|
2024-07-10 21:02:33 +00:00
|
|
|
|
|
|
|
DOMAIN = "russound_rio"
|
|
|
|
|
|
|
|
RUSSOUND_RIO_EXCEPTIONS = (
|
2024-09-06 13:22:39 +00:00
|
|
|
CommandError,
|
2024-07-10 21:02:33 +00:00
|
|
|
ConnectionRefusedError,
|
|
|
|
TimeoutError,
|
|
|
|
asyncio.CancelledError,
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2024-11-11 19:26:45 +00:00
|
|
|
CONNECT_TIMEOUT = 15
|
2024-07-23 16:37:24 +00:00
|
|
|
|
|
|
|
MP_FEATURES_BY_FLAG = {
|
|
|
|
FeatureFlag.COMMANDS_ZONE_MUTE_OFF_ON: MediaPlayerEntityFeature.VOLUME_MUTE
|
|
|
|
}
|