Skip to content

Commit

Permalink
Set code_arm_required to false if the arming code is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjay900 committed Jun 14, 2024
1 parent dd111d3 commit b66d861
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/bosch_alarm/alarm_control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b66d861

Please sign in to comment.