Fix setting audio profile (#2934)

This commit is contained in:
Joakim Sørensen 2021-06-04 14:18:23 +02:00 committed by GitHub
parent e85d7c3d2e
commit e629bab8ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,7 +202,7 @@ class SoundControl(CoreSysAttributes):
def _activate_profile():
try:
with Pulse(PULSE_NAME) as pulse:
card = pulse.get_sink_by_name(card_name)
card = pulse.get_card_by_name(card_name)
pulse.card_profile_set(card, profile_name)
except PulseIndexError as err: