Skip to content

Commit

Permalink
Re Added Security Light for more specific models IP8M-2796E (#416)
Browse files Browse the repository at this point in the history
* Update __init__.py

* Update init with security camera IP8M-2796Efeature for

Addressed issues
#405

---------

Co-authored-by: Allen Pauna <[email protected]>
  • Loading branch information
alpauna and Allen Pauna authored Nov 10, 2024
1 parent b39b0b0 commit 38bb0a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/dahua/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,9 @@ def supports_security_light(self) -> bool:
"""
Returns true if this camera has the red/blue flashing security light feature. For example, the
IPC-HDW3849HP-AS-PV does https://dahuawiki.com/Template:NameConvention
Addressed issue https://github.com/rroller/dahua/pull/405
"""
return "-AS-PV" in self.model or self.model == "AD410"
return "-AS-PV" in self.model or self.model == "AD410" or self.model.startswith("IP8M-2796E")

def is_doorbell(self) -> bool:
""" Returns true if this is a doorbell (VTO) """
Expand Down

0 comments on commit 38bb0a4

Please sign in to comment.