mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-26 19:06:11 +01:00
Use not instead of is None (#13962)
This commit is contained in:
parent
be3e1831d4
commit
ae547d27e4
@ -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)
|
||||
)
|
||||
):
|
||||
|
Loading…
Reference in New Issue
Block a user