Skip to content

Commit

Permalink
Use RCAs from amplipi.defaults in tests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Lohrer committed Dec 20, 2023
1 parent fad6236 commit 111f46e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions amplipi/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import sys

from amplipi import models
from amplipi.defaults import RCAs


class Client:
Expand Down Expand Up @@ -65,8 +66,6 @@ def available(self) -> bool:
return False


RCA_INPUTS = {sid: 996 + sid for sid in range(models.MAX_SOURCES)}

BEATLES_RADIO = {
'id': 1001,
'name': 'Beatles Radio',
Expand Down Expand Up @@ -152,7 +151,7 @@ def pst_all_zones_to_src(name: str, src: int, _input: str, vol=-50):
'state': {'zones': [{'id': zid, 'mute': False, 'vol': -50}]}
}
]
presets += [pst_all_zones_to_src(f'preamp-analog-in-{src+1}', src, f'stream={RCA_INPUTS[src]}', -40)
presets += [pst_all_zones_to_src(f'preamp-analog-in-{src+1}', src, f'stream={RCAs[src]}', -40)
for src in range(4)]
presets += [pst_all_zones_to_src('aux-in', 0, f'stream={AUX_PLAYBACK["id"]}', -40)]

Expand Down

0 comments on commit 111f46e

Please sign in to comment.