Fix bug with setting exposure time on load, add associated test

This commit is contained in:
Julian Stirling 2025-07-29 13:59:29 +01:00
parent b90b02cf7d
commit 38f4a745c3
2 changed files with 89 additions and 6 deletions

View file

@ -233,7 +233,7 @@ class StreamingPiCamera2(BaseCamera):
@exposure_time.setter
def exposure_time(self, value: int):
_exposure_time = value
self._exposure_time = value
if self.streaming:
with self._streaming_picamera() as cam:
# Note: This set a value 1 higher than requested as picamera2 always