-
Notifications
You must be signed in to change notification settings - Fork 47
fix: validate mapping options and add Partial Night state #336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
guerrerotook
merged 6 commits into
guerrerotook:main
from
clintongormley:fix/validate-mapping-options
Feb 26, 2026
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4b4a8f0
fix: validate mapping defaults against available options in config flow
clintongormley 85e6510
fix: persist migrated mapping values to entry.data
clintongormley b821b8d
fix: use string values in mapping defaults for selector compatibility
clintongormley 408031a
chore: add strings.json and translate mappings to Spanish
clintongormley 774e6bd
feat: add Partial Night state and rename Partial to Partial Day
clintongormley c40ef89
docs: add alarm state mapping section to README
clintongormley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| { | ||
| "config": { | ||
| "abort": { | ||
| "already_configured": "Service is already configured" | ||
| }, | ||
| "step": { | ||
| "user": { | ||
| "data": { | ||
| "username": "Username", | ||
| "password": "Password", | ||
| "use_2FA": "Use 2FA", | ||
| "country": "Country Code", | ||
| "code": "PIN Code (leave empty for no PIN)", | ||
| "PERI_alarm": "Is there a Perimetral alarm?", | ||
| "check_alarm_panel": "Check alarm panel's status in every request", | ||
| "scan_interval": "Update scan interval (sec)", | ||
| "delay_check_operation": "Delay to check the arming and disarming operations (sec)" | ||
| }, | ||
| "description": "Login into Securitas Direct.", | ||
| "title": "Login" | ||
| }, | ||
| "phone_list": { | ||
| "description": "Please select the phone to send the 2FA code", | ||
| "title": "Securitas Direct 2FA" | ||
| }, | ||
| "otp_challenge": { | ||
| "description": "Enter the code you received on your phone", | ||
| "title": "Securitas Direct 2FA" | ||
| } | ||
| } | ||
| }, | ||
| "options": { | ||
| "step": { | ||
| "init": { | ||
| "data": { | ||
| "code": "PIN Code (leave empty for no PIN)", | ||
| "PERI_alarm": "Is there a Perimetral alarm?", | ||
| "check_alarm_panel": "Check alarm panel's status in every request (not recommended)", | ||
| "scan_interval": "Update scan interval (sec)", | ||
| "delay_check_operation": "Delay to check the arming and disarming operation (sec)" | ||
| } | ||
| }, | ||
| "mappings": { | ||
| "title": "Alarm State Mappings", | ||
| "description": "Map each Home Assistant alarm action to a Securitas alarm mode. Set to 'Not used' to disable a button.", | ||
| "data": { | ||
| "map_home": "Home", | ||
| "map_away": "Away", | ||
| "map_night": "Night", | ||
| "map_custom": "Custom" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.