Turning on more lint checkers, warning for cameras that ignore resolution setting

This commit is contained in:
Julian Stirling 2025-06-10 13:57:34 +01:00
parent ae2ec1864f
commit 3f0564f253
3 changed files with 6 additions and 2 deletions

View file

@ -189,6 +189,7 @@ class SimulatedCamera(BaseCamera):
It's likely to be highly inefficient - raw and/or uncompressed captures using
binary image formats will be added in due course.
"""
logging.warning(f"Simulation camera doen't respect {resolution} setting")
return self.generate_frame()
@thing_action
@ -201,6 +202,7 @@ class SimulatedCamera(BaseCamera):
This function will produce a JPEG image.
"""
logging.warning(f"Simulation camera doen't respect {resolution} setting")
frame = self.capture_array()
jpeg = cv2.imencode(".jpg", frame)[1].tobytes()
exif_dict = {