Skip to content

Commit

Permalink
Merge pull request #160 from z-jun/main
Browse files Browse the repository at this point in the history
Fix unsplit mode in control panel
  • Loading branch information
tahvane1 authored Jan 18, 2024
2 parents dfa4981 + 30a4c75 commit c918682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/jablotron80/alarm_control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def state(self) -> str:
return STATE_ALARM_TRIGGERED

elif zone.status == JablotronZone.STATUS_ARMED and self._cu.mode == JA80CentralUnit.SYSTEM_MODE_UNSPLIT:
return STATE_ALARM_ARMED_HOME
return STATE_ALARM_ARMED_AWAY

elif zone.status == JablotronZone.STATUS_ARMED and self._cu.mode == JA80CentralUnit.SYSTEM_MODE_SPLIT and not zone == self._object:
return STATE_ALARM_ARMED_AWAY
Expand Down

0 comments on commit c918682

Please sign in to comment.