From 49a3adec4034606835c33244132c39ebaca0018c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fuat=20Akg=C3=BCn?= Date: Wed, 21 Dec 2022 23:06:44 +0100 Subject: [PATCH] fix: 1 second triggering for alarm panel --- custom_components/eufy_security/alarm_control_panel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/eufy_security/alarm_control_panel.py b/custom_components/eufy_security/alarm_control_panel.py index eec69a9..763fe0d 100644 --- a/custom_components/eufy_security/alarm_control_panel.py +++ b/custom_components/eufy_security/alarm_control_panel.py @@ -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")