Skip to content

Commit

Permalink
Mark AD410 as a doorbell
Browse files Browse the repository at this point in the history
Mark AD410 as a doorbell
  • Loading branch information
rroller authored Jul 17, 2021
1 parent fd6e769 commit 76fcb6d
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 @@ -407,7 +407,8 @@ def is_doorbell(self) -> bool:
"""
Returns true if this is a doorbell (VTO)
"""
return self.model.upper().startswith("VTO") or self.model.upper().startswith("DHI")
m = self.model.upper()
return m.startswith("VTO") or m.startswith("DHI") or m.startswith("AD410")

def supports_infrared_light(self) -> bool:
"""
Expand Down

0 comments on commit 76fcb6d

Please sign in to comment.