Correct the syntax for actions with intent script (#35572)

This commit is contained in:
Omar Amin 2024-11-05 08:44:02 +02:00 committed by GitHub
parent c30afb53b9
commit a81bcbf0e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ intent:
description: List of domains that the entity supports. description: List of domains that the entity supports.
required: false required: false
type: list type: list
actions: action:
description: Defines an action to run to intents. description: Defines an action to run to intents.
required: false required: false
type: action type: action
@ -109,7 +109,7 @@ conversation:
intent_script: intent_script:
EventCountToday: EventCountToday:
actions: action:
- action: calendar.get_events - action: calendar.get_events
target: target:
entity_id: calendar.my_calendar entity_id: calendar.my_calendar

View File

@ -148,7 +148,7 @@ As mentioned above, you can then use the `intent_script` integration to implemen
# Example configuration.yaml # Example configuration.yaml
intent_script: intent_script:
SetVolume: SetVolume:
actions: action:
service: "media_player.volume_set" service: "media_player.volume_set"
data: data:
entity_id: "{{ media_player }}" entity_id: "{{ media_player }}"