Skip to content

Commit

Permalink
fix: 1 second triggering for alarm panel
Browse files Browse the repository at this point in the history
  • Loading branch information
fuatakgun authored Dec 21, 2022
1 parent 468bac8 commit 49a3ade
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/eufy_security/alarm_control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,10 @@ def name(self):

@property
def state(self):
if not self.device.state.get("alarmEvent", None) is None:
if self.device.state.get("alarmEvent", None) is not None:
self.device.state["alarmEvent"] = None
return STATE_ALARM_TRIGGERED
if not self.device.state.get("alarmDelayEvent", None) is None:
if self.device.state.get("alarmDelayEvent", None) is not None:
self.device.state["alarmDelayEvent"] = None
return STATE_ALARM_DELAYED
current_mode = self.device.state.get("currentMode")
Expand Down

0 comments on commit 49a3ade

Please sign in to comment.