don't shadow camera_cfg when publishing empty cache streams

This commit is contained in:
Josh Hawkins
2026-08-23 17:00:34 -05:00
parent aa24e990c7
commit ad8eab74e6
+2 -2
View File
@@ -300,10 +300,10 @@ class RecordingMaintainer(threading.Thread):
RecordingsDataTypeEnum.latest.value,
)
# publish None for streams with no cache files (but only if we know the camera exists)
for camera_name, camera_cfg in self.config.cameras.items():
for camera_name, camera_config in self.config.cameras.items():
stream_types = [STREAM_TYPE_MAIN]
if camera_cfg.record.sub.enabled:
if camera_config.record.sub.enabled:
stream_types.append(STREAM_TYPE_SUB)
for stream_type in stream_types: