From 4ad752f6595b79150dfb03ac25f79ee697825088 Mon Sep 17 00:00:00 2001 From: Robert Lippmann Date: Thu, 12 Oct 2023 05:02:33 -0400 Subject: [PATCH] don't disable alarm states based upon open zones --- custom_components/adtpulse/alarm_control_panel.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/custom_components/adtpulse/alarm_control_panel.py b/custom_components/adtpulse/alarm_control_panel.py index 0c239f9..4a1b402 100644 --- a/custom_components/adtpulse/alarm_control_panel.py +++ b/custom_components/adtpulse/alarm_control_panel.py @@ -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