Skip to content

Commit

Permalink
Fix Alarm night mode not work.
Browse files Browse the repository at this point in the history
  • Loading branch information
niceboy committed Jul 4, 2021
1 parent e561e95 commit 7e4c741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/aqara_gateway/alarm_control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7e4c741

Please sign in to comment.