Skip to content

Commit

Permalink
fix: arming home to match type "stay" fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
petrleocompel committed Feb 21, 2023
1 parent 53e1a89 commit 7defb17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/hikvision_axpro/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def _update_data(self) -> None:
if subsys.arming == Arming.AWAY:
status = STATE_ALARM_ARMED_AWAY
break
if subsys.arming == Arming.HOME:
if subsys.arming == Arming.STAY:
status = STATE_ALARM_ARMED_HOME
break
if subsys.arming == Arming.VACATION:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/hikvision_axpro/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def to_dict(self) -> dict:

class Arming(Enum):
AWAY = "away"
HOME = "home"
STAY = "stay"
VACATION = "vacation"
DISARM = "disarm"

Expand Down

0 comments on commit 7defb17

Please sign in to comment.