From cddd859f564f0b29e364281c3f4aaddbdc6f3592 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 8 May 2018 14:27:17 +0200 Subject: [PATCH] :speaker: Improves of audio devices handling (#463) --- hassio/misc/hardware.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hassio/misc/hardware.py b/hassio/misc/hardware.py index 62e045223..fdfca042d 100644 --- a/hassio/misc/hardware.py +++ b/hassio/misc/hardware.py @@ -63,6 +63,10 @@ class Hardware: @property def audio_devices(self): """Return all available audio interfaces.""" + if not ASOUND_CARDS.exists(): + _LOGGER.info("No audio devices found") + return {} + try: with ASOUND_CARDS.open('r') as cards_file: cards = cards_file.read()