Add flake8 bugbear checks

This commit is contained in:
Julian Stirling 2025-08-12 13:09:43 +01:00
parent 7ea92ad55f
commit 6142a267db
11 changed files with 40 additions and 30 deletions

View file

@ -346,8 +346,8 @@ class StreamingPiCamera2(BaseCamera):
sensor_modes property, and then starts the streams.
"""
self._initialise_picamera()
# populate sensor modes by reading the property
self.sensor_modes
# Sensor modes is a cached property read it once after initialising the camera
_modes = self.sensor_modes
self.start_streaming()
return self