Migrate unifiprotect to use has_entity_name (#119759)

This commit is contained in:
J. Nick Koston 2024-06-16 09:00:14 -05:00 committed by GitHub
parent b20160a465
commit 59ca5b04fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 198 additions and 270 deletions

View file

@ -35,20 +35,20 @@ CAMERA_SWITCHES_BASIC = [
for d in CAMERA_SWITCHES
if (
not d.name.startswith("Detections:")
and d.name != "SSH Enabled"
and d.name != "Color Night Vision"
and d.name != "Tracking: Person"
and d.name != "HDR Mode"
and d.name != "SSH enabled"
and d.name != "Color night vision"
and d.name != "Tracking: person"
and d.name != "HDR mode"
)
or d.name == "Detections: Motion"
or d.name == "Detections: Person"
or d.name == "Detections: Vehicle"
or d.name == "Detections: Animal"
or d.name == "Detections: motion"
or d.name == "Detections: person"
or d.name == "Detections: vehicle"
or d.name == "Detections: animal"
]
CAMERA_SWITCHES_NO_EXTRA = [
d
for d in CAMERA_SWITCHES_BASIC
if d.name not in ("High FPS", "Privacy Mode", "HDR Mode")
if d.name not in ("High FPS", "Privacy mode", "HDR mode")
]