remove nested enabled config setting on events

This commit is contained in:
Blake Blackshear
2021-09-08 08:02:26 -05:00
parent e8eb3125a5
commit 288b1a0562
3 changed files with 12 additions and 16 deletions

View File

@@ -35,10 +35,8 @@ class EventProcessor(threading.Thread):
record_config: RecordConfig = self.config.cameras[camera].record
# Recording clips is disabled
if not record_config.enabled or (
record_config.retain_days == 0 and not record_config.events.enabled
):
# Recording is disabled
if not record_config.enabled:
return False
# If there are required zones and there is no overlap