summaryrefslogtreecommitdiff
path: root/tools/merge-recordings.py
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 /tools/merge-recordings.py
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 'tools/merge-recordings.py')
-rwxr-xr-xtools/merge-recordings.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/merge-recordings.py b/tools/merge-recordings.py
index 637858e..b93f75b 100755
--- a/tools/merge-recordings.py
+++ b/tools/merge-recordings.py
@@ -5,6 +5,7 @@ import subprocess
import tempfile
import sys
+from typing import List
from datetime import datetime, timedelta
from argparse import ArgumentParser
@@ -12,7 +13,7 @@ from argparse import ArgumentParser
fmt = '%d%m%y-%H%M%S'
File = dict
-FileList = list[File]
+FileList = List[File]
def get_files(source_directory: str) -> FileList:
@@ -31,7 +32,7 @@ def get_files(source_directory: str) -> FileList:
return files
-def group_files(files: FileList) -> list[FileList]:
+def group_files(files: FileList) -> List[FileList]:
groups = []
group_idx = None
@@ -55,7 +56,7 @@ def group_files(files: FileList) -> list[FileList]:
return groups
-def merge(groups: list[FileList],
+def merge(groups: List[FileList],
output_directory: str,
delete_source_files=False,
vbr=False) -> None: