mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 14:47: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.camera.state import CameraState
|
||||
from frigate.config import FrigateConfig
|
||||
from frigate.config.camera.snapshots import SnapshotsConfig
|
||||
from frigate.const import (
|
||||
CACHE_DIR,
|
||||
INSTALL_DIR,
|
||||
@ -115,7 +116,7 @@ def imagestream(
|
||||
|
||||
|
||||
def _resolve_snapshot_settings(
|
||||
snapshot_config: Any, params: MediaEventsSnapshotQueryParams
|
||||
snapshot_config: SnapshotsConfig, params: MediaEventsSnapshotQueryParams
|
||||
) -> dict[str, Any]:
|
||||
return {
|
||||
"timestamp": snapshot_config.timestamp
|
||||
|
||||
Loading…
Reference in New Issue
Block a user