Rename deprecated api services/service to actions/action

ESPHome renamed the api component's services/service keys to
actions/action; update all devices using the old names.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
randyandClaude Sonnet 5 committed 2026-09-25 21:24:36 +02:00
1 parent 468e813958
commit 56db2c2087
15 files changed
+134 -134

No files matched your search

+4 -4
View File
@@ -114,8 +114,8 @@ script:
# make use of the following service.
api:
reboot_timeout: 0s
services:
- service: activate_preset
actions:
- action: activate_preset
variables:
my_group: string
my_preset: string
@@ -279,8 +279,8 @@ sensor:
lambda: |-
return id(group_control);
then:
- homeassistant.service:
service: light.turn_on
- homeassistant.action:
action: light.turn_on
data:
light_name: bedroom_lamp
brightness: !lambda return x;