mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-27 11:06:32 +00:00
test 2
This commit is contained in:
parent
19879e3287
commit
ef7a375396
@ -40,11 +40,11 @@ class AlsaAudio(CoreSysAttributes):
|
|||||||
|
|
||||||
def _update_device(self):
|
def _update_device(self):
|
||||||
"""Update Internal device DB."""
|
"""Update Internal device DB."""
|
||||||
current_id = hash(frozenset(self._hardware.audio_devices))
|
#current_id = hash(frozenset(self._hardware.audio_devices))
|
||||||
|
|
||||||
# Need rebuild?
|
# Need rebuild?
|
||||||
if current_id == self._cache:
|
#if current_id == self._cache:
|
||||||
return
|
# return
|
||||||
|
|
||||||
# Init database
|
# Init database
|
||||||
_LOGGER.info("Update ALSA device list")
|
_LOGGER.info("Update ALSA device list")
|
||||||
@ -67,7 +67,8 @@ class AlsaAudio(CoreSysAttributes):
|
|||||||
|
|
||||||
self._cache = current_id
|
self._cache = current_id
|
||||||
|
|
||||||
def _audio_database(self):
|
@staticmethod
|
||||||
|
def _audio_database():
|
||||||
"""Read local json audio data into dict."""
|
"""Read local json audio data into dict."""
|
||||||
json_file = Path(__file__).parent.joinpath('audiodb.json')
|
json_file = Path(__file__).parent.joinpath('audiodb.json')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user