File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -181,14 +181,14 @@ async def choose_cam(self, task: Camera_Task):
181
181
182
182
# ToDo: improve here if two are enabled for night vision
183
183
# ToDo: further extended unit tests required here
184
-
185
184
if self .config .blink_night_vision :
186
185
self .logger .debug ("blink night_vision is enabled" )
187
186
result = await self ._blink_foto_helper (task )
188
187
return await self ._check_blink_result (task , result )
189
188
190
- if self .config .picam_night_vision :
191
- self .logger .debug ("picam night_vision is enabled" )
189
+ if self .config .picam_night_vision or self .config .picam_image_brightening :
190
+ self .logger .debug (f"picam night_vision is { self .config .picam_night_vision } " )
191
+ self .logger .debug (f"picam image_brightening is { self .config .picam_image_brightening } " )
192
192
result = await self ._picam_foto_helper (task )
193
193
return await self ._check_picam_result (task , result )
194
194
@@ -405,6 +405,7 @@ def detect_daylight(self) -> bool:
405
405
longitude = self .config .lon ,
406
406
timezone = self .config .timezone
407
407
)
408
+ self .logger .debug (f"location: { location } " )
408
409
s = sun (location .observer , date = local_date )
409
410
elif self .config .country is not None :
410
411
self .logger .debug ("using country - city for daylight detection" )
You can’t perform that action at this time.
0 commit comments