mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-08 02:19:35 +00:00
Add Audio layer / PulseAudio (#1523)
* Improve alsa handling * use default from image * create alsa folder * Map config into addon * Add Audio object * Fix dbus * add host group file * Fix persistent file * Use new template * fix lint * Fix lint * add API * Update new base image / build system * Add audio container * extend new audio settings * provide pulse client config * Adjust files * Use without auth * reset did not exists now * cleanup old alsa layer * fix tasks * fix black * fix lint * Add dbus support * add dbus adjustments * Fixups
This commit is contained in:
@@ -37,13 +37,8 @@ class APIHardware(CoreSysAttributes):
|
||||
|
||||
@api_process
|
||||
async def audio(self, request: web.Request) -> Dict[str, Any]:
|
||||
"""Show ALSA audio devices."""
|
||||
return {
|
||||
ATTR_AUDIO: {
|
||||
ATTR_INPUT: self.sys_host.alsa.input_devices,
|
||||
ATTR_OUTPUT: self.sys_host.alsa.output_devices,
|
||||
}
|
||||
}
|
||||
"""Show pulse audio profiles."""
|
||||
return {ATTR_AUDIO: {ATTR_INPUT: [], ATTR_OUTPUT: []}}
|
||||
|
||||
@api_process
|
||||
def trigger(self, request: web.Request) -> None:
|
||||
|
||||
Reference in New Issue
Block a user