1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 12:29:08 +00:00

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

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: