This commit is contained in:
Pascal Vizeli 2018-04-13 22:42:27 +02:00
parent d1c4f342fc
commit 19879e3287

View File

@ -29,13 +29,13 @@ class AlsaAudio(CoreSysAttributes):
@property @property
def input_devices(self): def input_devices(self):
"""Return list of ALSA input devices.""" """Return list of ALSA input devices."""
#self._update_device() self._update_device()
return self._data[ATTR_INPUT] return self._data[ATTR_INPUT]
@property @property
def output_devices(self): def output_devices(self):
"""Return list of ALSA output devices.""" """Return list of ALSA output devices."""
#self._update_device() self._update_device()
return self._data[ATTR_OUTPUT] return self._data[ATTR_OUTPUT]
def _update_device(self): def _update_device(self):
@ -67,8 +67,7 @@ class AlsaAudio(CoreSysAttributes):
self._cache = current_id self._cache = current_id
@staticmethod def _audio_database(self):
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')