diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-06-14 23:25:58 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-06-14 23:25:58 +0300 |
commit | 93b5eb4bc5fa380e5a611a4bebdf8dc52a53127b (patch) | |
tree | 178233c8ebe7731a864097ab44bf746115310c66 /src | |
parent | a3b4510b7270c1fe8db510f7f17a6cbe2486c48a (diff) |
1) fix camera_node 2) delete unused imports
Diffstat (limited to 'src')
-rwxr-xr-x | src/camera_node.py | 2 | ||||
-rw-r--r-- | src/home/media/node_client.py | 1 | ||||
-rwxr-xr-x | src/sound_bot.py | 1 |
3 files changed, 1 insertions, 3 deletions
diff --git a/src/camera_node.py b/src/camera_node.py index 206361a..f920837 100755 --- a/src/camera_node.py +++ b/src/camera_node.py @@ -51,7 +51,7 @@ class ESP32CameraNodeServer(MediaNodeServer): await self.sync_settings_if_needed() # sync settings - return super().do_record(request) + return await super().do_record(request) async def sync_settings_if_needed(self): if self.last_settings_sync != 0 and time.time() - self.last_settings_sync < 300: diff --git a/src/home/media/node_client.py b/src/home/media/node_client.py index 18f0779..4430962 100644 --- a/src/home/media/node_client.py +++ b/src/home/media/node_client.py @@ -5,7 +5,6 @@ import logging from typing import Optional, Union from .storage import RecordFile from ..util import Addr -from ..camera.types import CameraType from ..api.errors import ApiResponseError diff --git a/src/sound_bot.py b/src/sound_bot.py index e45893d..b515ae7 100755 --- a/src/sound_bot.py +++ b/src/sound_bot.py @@ -1,7 +1,6 @@ #!/usr/bin/env python3 import logging import os -import time import tempfile from enum import Enum |