mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 22:57:40 +03:00
Expect SnapshotsConfig not Any
This commit is contained in:
parent
42e442246b
commit
cd74bd7838
@ -35,6 +35,7 @@ from frigate.api.defs.query.media_query_parameters import (
|
|||||||
from frigate.api.defs.tags import Tags
|
from frigate.api.defs.tags import Tags
|
||||||
from frigate.camera.state import CameraState
|
from frigate.camera.state import CameraState
|
||||||
from frigate.config import FrigateConfig
|
from frigate.config import FrigateConfig
|
||||||
|
from frigate.config.camera.snapshots import SnapshotsConfig
|
||||||
from frigate.const import (
|
from frigate.const import (
|
||||||
CACHE_DIR,
|
CACHE_DIR,
|
||||||
INSTALL_DIR,
|
INSTALL_DIR,
|
||||||
@ -115,7 +116,7 @@ def imagestream(
|
|||||||
|
|
||||||
|
|
||||||
def _resolve_snapshot_settings(
|
def _resolve_snapshot_settings(
|
||||||
snapshot_config: Any, params: MediaEventsSnapshotQueryParams
|
snapshot_config: SnapshotsConfig, params: MediaEventsSnapshotQueryParams
|
||||||
) -> dict[str, Any]:
|
) -> dict[str, Any]:
|
||||||
return {
|
return {
|
||||||
"timestamp": snapshot_config.timestamp
|
"timestamp": snapshot_config.timestamp
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user