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.
required: false
type: list
actions:
action:
description: Defines an action to run to intents.
required: false
type: action
@ -109,7 +109,7 @@ conversation:
intent_script:
EventCountToday:
actions:
action:
- action: calendar.get_events
target:
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
intent_script:
SetVolume:
actions:
action:
service: "media_player.volume_set"
data:
entity_id: "{{ media_player }}"