Repository navigation
Conversation
|
hi @jamie75, an automated review found these items, which i have in turn reviewed to be legitimate. if you are able to apply this feedback, that's great. if not, i'll get to it with my own agent. either way, this is a good feature and i will incorporate it. thank you! FindingsMost severe first. Line numbers refer to the PR branch. 1. Mode log is noisy in cron mode (correctness)
Fix: use 2. Empty
|
|
Thanks for the detailed review. I've addressed all nine findings. The update moves mode logging to DEBUG, defaults empty or unset Docker values to auto, centralizes the CLI choices with Literal annotations, and adds actionable errors for incompatible forced API modes. I also moved shell coverage into Behave and added scenarios covering both protocols, probe bypass, environment validation, and metadata downloads. The unit tests now use deterministic disk-usage values, and assertions follow the project's conventions. Validation passed on Python 3.9 and 3.13, including the direct and Docker Behave suites. Coverage is 82.01%, and all pre-commit checks passed. Existing automatic detection, download, and retention behavior remain unchanged. |
Summary
This PR adds an optional --camera-api setting that allows users to explicitly select the recording API instead of performing firmware detection during every synchronization.
Supported modes:
The setting is also available through the Docker environment variable CAMERA_API.
Motivation
For cameras with known API compatibility, firmware detection introduces an unnecessary HTTP request during every synchronization.
Allowing users to select the API explicitly eliminates that request while preserving automatic detection as the default.
Testing
This change does not attempt to address underlying network connectivity issues.
Compatibility
Existing installations continue using automatic detection unless the new setting is explicitly configured.