mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 15:16:33 +00:00
🔈 Improves of audio devices handling (#463)
This commit is contained in:
parent
ac437f809a
commit
cddd859f56
@ -63,6 +63,10 @@ class Hardware:
|
|||||||
@property
|
@property
|
||||||
def audio_devices(self):
|
def audio_devices(self):
|
||||||
"""Return all available audio interfaces."""
|
"""Return all available audio interfaces."""
|
||||||
|
if not ASOUND_CARDS.exists():
|
||||||
|
_LOGGER.info("No audio devices found")
|
||||||
|
return {}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with ASOUND_CARDS.open('r') as cards_file:
|
with ASOUND_CARDS.open('r') as cards_file:
|
||||||
cards = cards_file.read()
|
cards = cards_file.read()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user