From b66d861ed76fda463b9387a25481a6338a6f46fd Mon Sep 17 00:00:00 2001 From: Sanjay Govind Date: Fri, 14 Jun 2024 12:54:31 +1200 Subject: [PATCH] Set code_arm_required to false if the arming code is not set --- custom_components/bosch_alarm/alarm_control_panel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_components/bosch_alarm/alarm_control_panel.py b/custom_components/bosch_alarm/alarm_control_panel.py index db46023..d1128f9 100644 --- a/custom_components/bosch_alarm/alarm_control_panel.py +++ b/custom_components/bosch_alarm/alarm_control_panel.py @@ -45,6 +45,7 @@ def __init__(self, panel_conn, arming_code, area_id, area, unique_id): self._attr_unique_id = unique_id self._attr_has_entity_name = True self._attr_device_info = panel_conn.device_info() + self._attr_code_arm_required = arming_code is not None @property def code_format(self) -> alarm.CodeFormat | None: