From 7e4c7413267d7aec9560013d943d003a66ad7c86 Mon Sep 17 00:00:00 2001 From: niceboy Date: Sun, 4 Jul 2021 08:59:44 +0000 Subject: [PATCH] Fix Alarm night mode not work. --- custom_components/aqara_gateway/alarm_control_panel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/aqara_gateway/alarm_control_panel.py b/custom_components/aqara_gateway/alarm_control_panel.py index 18a084d..ae5a6bc 100755 --- a/custom_components/aqara_gateway/alarm_control_panel.py +++ b/custom_components/aqara_gateway/alarm_control_panel.py @@ -107,7 +107,7 @@ def alarm_arm_night(self, code=None): self._set_state(2) def _set_state(self, state): - if state in range(0, 2): + if state in range(0, 3): self._shell.set_prop('persist.app.arming_state', str(state)) value = 'true' command = "-arm -g"