Add limits to background detect and settling time settings

This commit is contained in:
Joe Knapper 2026-03-02 19:40:44 +00:00 committed by Julian Stirling
parent ba8de65fd2
commit 06f12973f4
2 changed files with 5 additions and 5 deletions

View file

@ -565,7 +565,7 @@ class BaseCamera(lt.Thing):
except Exception as e:
raise IOError(f"An error occurred while saving {jpeg_path}") from e
settling_time: float = lt.setting(default=0.2)
settling_time: float = lt.setting(default=0.2, ge=0)
"""The settling time when calling the ``settle()`` method."""
@lt.action