Skip to content

Commit

Permalink
Fix mandatory alarm code (#58)
Browse files Browse the repository at this point in the history
HA 2024.06 introduced a mandatory code on alarm_control_panel.
Overridden code_arm_required method to provide the relevant value

Co-authored-by: Ludovic Engrand <[email protected]>
  • Loading branch information
the8tre and Ludovic Engrand authored Sep 9, 2024
1 parent 5deb03b commit 69d16f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions custom_components/somfy_protexial/alarm_control_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ def code_format(self):
else:
return CodeFormat.NUMBER

@property
def code_arm_required(self) -> bool:
"""Whether the code is required for arm actions."""
return self.arm_code is not None

@property
def changed_by(self):
"""Return the last change triggered by."""
Expand Down
2 changes: 1 addition & 1 deletion custom_components/somfy_protexial/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"issue_tracker": "https://github.com/the8tre/somfy-protexial/issues",
"loggers": ["custom_components.somfy_protexial"],
"requirements": ["pyquery==2.0.0"],
"version": "1.2.0"
"version": "1.2.1"
}

0 comments on commit 69d16f6

Please sign in to comment.