forked from platypush/platypush
[Sound] Don't override device index if it's already defined in the info.
This commit is contained in:
parent
b097a4c1f4
commit
4505c46071
1 changed files with 3 additions and 1 deletions
|
@ -51,7 +51,9 @@ class DeviceManager:
|
|||
if type:
|
||||
devices = [dev for dev in devices if dev.get(f'max_{type.value}_channels')]
|
||||
|
||||
return [AudioDevice(index=idx, **info) for idx, info in enumerate(devices)]
|
||||
return [
|
||||
AudioDevice(**{'index': idx, **info}) for idx, info in enumerate(devices)
|
||||
]
|
||||
|
||||
def get_device(
|
||||
self,
|
||||
|
|
Loading…
Reference in a new issue