From 6a1cd628aa4c45394550e6c70b9f768fe8d1a82a Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 12 Jul 2023 13:45:38 +0200 Subject: [PATCH] Migrate script services to support translations (#96401) --- homeassistant/components/script/services.yaml | 9 --------- homeassistant/components/script/strings.json | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/homeassistant/components/script/services.yaml b/homeassistant/components/script/services.yaml index 1d3c0e8a8a9..6fc3d81f196 100644 --- a/homeassistant/components/script/services.yaml +++ b/homeassistant/components/script/services.yaml @@ -1,26 +1,17 @@ # Describes the format for available python_script services reload: - name: Reload - description: Reload all the available scripts - turn_on: - name: Turn on - description: Turn on script target: entity: domain: script turn_off: - name: Turn off - description: Turn off script target: entity: domain: script toggle: - name: Toggle - description: Toggle script target: entity: domain: script diff --git a/homeassistant/components/script/strings.json b/homeassistant/components/script/strings.json index b9624f16a31..e4f1b3fcd4f 100644 --- a/homeassistant/components/script/strings.json +++ b/homeassistant/components/script/strings.json @@ -31,5 +31,23 @@ } } } + }, + "services": { + "reload": { + "name": "Reload", + "description": "Reloads all the available scripts." + }, + "turn_on": { + "name": "Turn on", + "description": "Runs the sequence of actions defined in a script." + }, + "turn_off": { + "name": "Turn off", + "description": "Stops a running script." + }, + "toggle": { + "name": "Toggle", + "description": "Toggle a script. Starts it, if isn't running, stops it otherwise." + } } }