Skip to content

Commit

Permalink
Support humans in CrossRegionDetection
Browse files Browse the repository at this point in the history
  • Loading branch information
rroller committed Aug 30, 2021
1 parent 6b70dbd commit 2125272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/dahua/__init__.py
Expand Up @@ -423,7 +423,7 @@ def translate_event_code(self, event: dict):
# }
# }
# }
if code == "CrossLineDetection":
if code == "CrossLineDetection" or code == "CrossRegionDetection":
data = event.get("data", event.get("Data", {}))
is_human = data.get("Object", {}).get("ObjectType", "").lower() == "human"
if is_human and self._dahua_event_listeners.get(self.get_event_key(code)) is not None:
Expand Down

0 comments on commit 2125272

Please sign in to comment.