Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Breaking change
This is potentially a breaking change if anybody depends on the CUSTOM_BYPASS state being relayed.
Proposed change
This is a followup on #119168 that goes one step further and removes CUSTOM_BYPASS from the SIA integration. Currently, the SIA code "CF" is sent when "the system has been armed with malfunctions using", quoting the official SIA code list from Ajax: https://docs.google.com/spreadsheets/d/1-N-RZVS8IiwM5zuw2u4gt8Bx_5xo_JOwuagHJgSJxUw/edit?gid=920971512#gid=920971512
Why do we remove the CUSTOM_BYPASS state? First, it happens quite often in Ajax. If you have a device with a low battery, if you have system integrity enabled and arm with a door opened, or something similar, then you need to confirm arming in the Ajax app before arming. After that, the system does arm, and the Ajax app shows the state "Armed".
However, in that state, the SIA integration in HA will not say "Armed" but "Armed custom bypass". I argue that this is unneccessary and that it should say just "Armed". Having a low device battery does should not, in my opinion, change the state from the logical "Armed" state. This can make it hard to write integration since you need to handle the CUSTOM_BYPASS state when the system actually is armed.
I understand that this change is opinionated but I'm open to discussion
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: