Skip to content

Commit

Permalink
Add commit 808bcd6 back
Browse files Browse the repository at this point in the history
  • Loading branch information
slyglif committed Jan 3, 2025
1 parent 2392027 commit 2dc7bc9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion custom_components/unifi_access/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,8 @@ def on_message(self, ws: websocket.WebSocketApp, message): # noqa: C901
if door_id in self.doors:
existing_door = self.doors[door_id]
actor = update["data"]["_source"]["actor"]["display_name"]
#"REMOTE_THROUGH_UAH" , "NFC" , "MOBILE_TAP" , "PIN_CODE"
authentication = update["data"]["_source"]["authentication"]["credential_provider"]
device_config = next(
(
target
Expand All @@ -603,13 +605,15 @@ def on_message(self, ws: websocket.WebSocketApp, message): # noqa: C901
"door_name": existing_door.name,
"door_id": door_id,
"actor": actor,
"authentication": authentication,
"type": ACCESS_EVENT.format(type=access_type),
}
_LOGGER.info(
"Door name %s with id %s accessed by %s. access type: %s",
"Door name %s with id %s accessed by %s. authentication %s, access type: %s",
existing_door.name,
door_id,
actor,
authentication,
access_type,
)
changed_doors.append(existing_door)
Expand Down

0 comments on commit 2dc7bc9

Please sign in to comment.