Skip to content

Commit b856a16

Browse files
authored
Change from depreciated service calls to new actions
Change from depreciated service calls to new actions
1 parent 4e6ed92 commit b856a16

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Integrations/ESPHome/Core.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@ esphome:
3131
- lambda: "id(testScript).execute();"
3232

3333
api:
34-
services:
35-
- service: play_buzzer
34+
actions:
35+
- action: play_buzzer
3636
variables:
3737
song_str: string
3838
then:
3939
- rtttl.play:
4040
rtttl: !lambda 'return song_str;'
41-
- service: run_pump_for_seconds
41+
- action: run_pump_for_seconds
4242
variables:
4343
seconds: int
4444
then:
4545
- switch.turn_on: pump_control
4646
- delay: !lambda 'return seconds * 1000;'
4747
- switch.turn_off: pump_control
48-
- service: run_pump_until_full
48+
- action: run_pump_until_full
4949
then:
5050
- script.execute: pumpUntilFull
5151

@@ -395,4 +395,4 @@ script:
395395
green: 0%
396396
blue: 0%
397397
- light.turn_off:
398-
id: rgb_light
398+
id: rgb_light

0 commit comments

Comments
 (0)