Skip to content

Commit

Permalink
employee update
Browse files Browse the repository at this point in the history
  • Loading branch information
pergolafabio committed Jan 2, 2024
1 parent c0ba849 commit b7caa63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hikvision-doorbell/src/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ async def acs_alarm(
match minor_alarm.name:
case "MINOR_FACE_VERIFY_PASS":
logger.info("Minor control event: {} found on door {} with employee id: {}", minor_alarm.name, door_id, employee_id)
trigger = DeviceTriggerMetadata(name=f"ACS Face Employee {employee_id}", type=f"face_verify", subtype=f"employee_id {employee_id}")
trigger = DeviceTriggerMetadata(name=f"ACS Face Employee {employee_id}", type=f"face_verify", subtype=f"employee_id_{employee_id}")
self.handle_device_trigger(doorbell, trigger)
trigger = DeviceTriggerMetadata(name=f"{major_alarm.name} {minor_alarm.name}", type=f"", subtype=f"{major_alarm.name} {minor_alarm.name}")
self.handle_device_trigger(doorbell, trigger)
Expand Down

0 comments on commit b7caa63

Please sign in to comment.