Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
don't disable alarm states based upon open zones
Browse files Browse the repository at this point in the history
  • Loading branch information
rlippmann committed Oct 12, 2023
1 parent 85032e6 commit 4ad752f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions custom_components/adtpulse/alarm_control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,8 @@ def icon(self) -> str:
return ALARM_ICON_MAP[self._alarm.status]

@property
def supported_features(self) -> AlarmControlPanelEntityFeature | None:
def supported_features(self) -> AlarmControlPanelEntityFeature:
"""Return the list of supported features."""
if self.state != STATE_ALARM_DISARMED:
return None
retval = AlarmControlPanelEntityFeature.ARM_CUSTOM_BYPASS
if self._site.zones_as_dict is None:
return retval
if not system_can_be_armed(self._site):
return retval
return (
AlarmControlPanelEntityFeature.ARM_AWAY
| AlarmControlPanelEntityFeature.ARM_CUSTOM_BYPASS
Expand Down

0 comments on commit 4ad752f

Please sign in to comment.