Skip to content

Commit 7defb17

Browse files
committed
fix: arming home to match type "stay" fixes #1
1 parent 53e1a89 commit 7defb17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

custom_components/hikvision_axpro/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def _update_data(self) -> None:
147147
if subsys.arming == Arming.AWAY:
148148
status = STATE_ALARM_ARMED_AWAY
149149
break
150-
if subsys.arming == Arming.HOME:
150+
if subsys.arming == Arming.STAY:
151151
status = STATE_ALARM_ARMED_HOME
152152
break
153153
if subsys.arming == Arming.VACATION:

custom_components/hikvision_axpro/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def to_dict(self) -> dict:
262262

263263
class Arming(Enum):
264264
AWAY = "away"
265-
HOME = "home"
265+
STAY = "stay"
266266
VACATION = "vacation"
267267
DISARM = "disarm"
268268

0 commit comments

Comments
 (0)