summaryrefslogtreecommitdiff
path: root/src/home/audio
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-06-28 03:22:30 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-06-30 03:47:49 +0300
commit8f20c9b825cabab7a3f0f5dd2cfe000cc7f72c28 (patch)
treeb5d7446e7b2fcfd42b1e5029aeef33ecb5f9715f /src/home/audio
parentee09bc98aedfc6a65a5026432b399345a30a39c8 (diff)
polaris pwk 1725cgld full support
- significant improvements, correctnesses and stability fixes in protocol implementation - correct handling of device appearances and disappearances - flawlessly functioning telegram bot that re-renders kettle's state (temperature and other) in real time
Diffstat (limited to 'src/home/audio')
-rw-r--r--src/home/audio/amixer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/home/audio/amixer.py b/src/home/audio/amixer.py
index 0ab2c64..53e6bce 100644
--- a/src/home/audio/amixer.py
+++ b/src/home/audio/amixer.py
@@ -2,7 +2,7 @@ import subprocess
from ..config import config
from threading import Lock
-from typing import Union
+from typing import Union, List
_lock = Lock()
@@ -16,7 +16,7 @@ def has_control(s: str) -> bool:
return False
-def get_caps(s: str) -> list[str]:
+def get_caps(s: str) -> List[str]:
for control in config['amixer']['controls']:
if control['name'] == s:
return control['caps']