From 38bb0a4a3dca564d3590a5543d9f4fb68f0cfdca Mon Sep 17 00:00:00 2001 From: alpauna <36033796+alpauna@users.noreply.github.com> Date: Sun, 10 Nov 2024 16:53:48 -0600 Subject: [PATCH] Re Added Security Light for more specific models IP8M-2796E (#416) * Update __init__.py * Update init with security camera IP8M-2796Efeature for Addressed issues https://github.com/rroller/dahua/pull/405 --------- Co-authored-by: Allen Pauna --- custom_components/dahua/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/dahua/__init__.py b/custom_components/dahua/__init__.py index fc757df..90ef9c0 100755 --- a/custom_components/dahua/__init__.py +++ b/custom_components/dahua/__init__.py @@ -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) """