Update audio.py (#1548)

This commit is contained in:
Bram Kragten 2020-02-29 19:28:52 +01:00 committed by GitHub
parent 4fe5d09f01
commit 6d39b4d7cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,7 +163,7 @@ class APIAudio(CoreSysAttributes):
@api_process
async def set_profile(self, request: web.Request) -> None:
"""Set audio default sources."""
body = await api_validate(SCHEMA_DEFAULT, request)
body = await api_validate(SCHEMA_PROFILE, request)
await asyncio.shield(
self.sys_host.sound.set_profile(body[ATTR_CARD], body[ATTR_NAME])