Increase range of valid source IDs in nad (#72086)

nad: Increase max source ID to 12

Tested on a NAD C658 with an MDC HDM-2 card installed.
This commit is contained in:
Adam James 2022-05-19 07:28:55 +01:00 committed by GitHub
parent 272e65f56d
commit c4f6fcc3d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,7 +45,8 @@ CONF_MAX_VOLUME = "max_volume"
CONF_VOLUME_STEP = "volume_step" # for NADReceiverTCP
CONF_SOURCE_DICT = "sources" # for NADReceiver
SOURCE_DICT_SCHEMA = vol.Schema({vol.Range(min=1, max=10): cv.string})
# Max value based on a C658 with an MDC HDM-2 card installed
SOURCE_DICT_SCHEMA = vol.Schema({vol.Range(min=1, max=12): cv.string})
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
{