Use not instead of is None (#13962)

This commit is contained in:
Josh Hawkins 2024-09-25 12:53:25 -05:00 committed by GitHub
parent be3e1831d4
commit ae547d27e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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