Use not instead of is None

This commit is contained in:
Josh Hawkins 2024-09-25 12:35:29 -05:00
parent 45aceea53b
commit 589b765ffc

View File

@ -128,11 +128,11 @@ class EmbeddingMaintainer(threading.Thread):
and self.genai_client is not None
and event.data.get("description") is None
and (
camera_config.genai.objects is None
not camera_config.genai.objects
or event.label in camera_config.genai.objects
)
and (
camera_config.genai.required_zones is None
not camera_config.genai.required_zones
or set(event.zones) & set(camera_config.genai.required_zones)
)
):