Rename 'action' to 'target_state' in documentation (#41661)

This commit is contained in:
giuseppeg88 2025-11-07 14:51:26 +01:00 committed by GitHub
parent c1a6b84e38
commit 47f52eb576
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -108,7 +108,7 @@ The `manual_alarm_bad_code_attempt` event is fired when an attempt to change the
#### Event data
- **entity_id** (string): The entity ID of the alarm control panel (for example, `alarm_control_panel.my_alarm`).
- **action** (string): The attempted action or target state (for example, `disarmed`, `armed_away`, `armed_home`).
- **target_state** (string): The attempted target state (for example, `disarmed`, `armed_away`, `armed_home`).
- **user_id** (string): The user ID who initiated the service call (if available).
Example automation trigger:
@ -125,7 +125,7 @@ automation:
message: >
Invalid alarm code attempt for {{ trigger.event.data.entity_id }}
by user ID {{ trigger.event.data.user_id }}
while attempting action {{ trigger.event.data.action }}.
while attempting to set state {{ trigger.event.data.target_state }}.
```
## State machine