mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-13 12:16:29 +00:00
test
This commit is contained in:
parent
d1c4f342fc
commit
19879e3287
@ -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')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user