Log warning rather than error if the named background detector doesn't exist to prevent not booting if detectors change

This commit is contained in:
Julian Stirling 2025-11-17 15:00:58 +00:00
parent 79c94c96ed
commit 873968877b

View file

@ -641,7 +641,7 @@ class BaseCamera(lt.Thing):
def detector_name(self, name: str) -> None:
"""Validate and set detector_name."""
if name not in self.background_detectors:
raise ValueError(f"{name} is not a valid background detector name")
LOGGER.warning(f"{name} is not a valid background detector name.")
self._detector_name = name
@property