From ef7a3753967a2dec2d0cfb37d206408a153bb61c Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Fri, 13 Apr 2018 22:56:36 +0200 Subject: [PATCH] test 2 --- hassio/host/alsa.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hassio/host/alsa.py b/hassio/host/alsa.py index 3a85cb61e..99e855a61 100644 --- a/hassio/host/alsa.py +++ b/hassio/host/alsa.py @@ -40,11 +40,11 @@ class AlsaAudio(CoreSysAttributes): def _update_device(self): """Update Internal device DB.""" - current_id = hash(frozenset(self._hardware.audio_devices)) + #current_id = hash(frozenset(self._hardware.audio_devices)) # Need rebuild? - if current_id == self._cache: - return + #if current_id == self._cache: + # return # Init database _LOGGER.info("Update ALSA device list") @@ -67,7 +67,8 @@ class AlsaAudio(CoreSysAttributes): self._cache = current_id - def _audio_database(self): + @staticmethod + def _audio_database(): """Read local json audio data into dict.""" json_file = Path(__file__).parent.joinpath('audiodb.json')