Fix bad logic in detect set

This commit is contained in:
Nicolas Mowen 2022-04-18 15:52:00 -06:00 committed by GitHub
parent da5b217403
commit 1a60e45852
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,7 @@ def create_mqtt_client(config: FrigateConfig, camera_metrics):
camera_metrics[camera_name]["detection_enabled"].value = True
detect_settings.enabled = True
if camera_metrics[camera_name]["motion_enabled"].value:
if not camera_metrics[camera_name]["motion_enabled"].value:
logger.info(
f"Turning on motion for {camera_name} due to detection being enabled."
)