From a3a2e6cc8dfac9889dde2ed52cfc8e93fb7d6a4e Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 12 Jul 2023 12:23:39 +0200 Subject: [PATCH] Migrate time services to support translations (#96402) --- homeassistant/components/time/services.yaml | 4 ---- homeassistant/components/time/strings.json | 12 ++++++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/time/services.yaml b/homeassistant/components/time/services.yaml index a8c843ab55a..ee3d9150870 100644 --- a/homeassistant/components/time/services.yaml +++ b/homeassistant/components/time/services.yaml @@ -1,13 +1,9 @@ set_value: - name: Set Time - description: Set the time for a time entity. target: entity: domain: time fields: time: - name: Time - description: The time to set. required: true example: "22:15" selector: diff --git a/homeassistant/components/time/strings.json b/homeassistant/components/time/strings.json index e8d92a30e2e..1b7c53b1a8a 100644 --- a/homeassistant/components/time/strings.json +++ b/homeassistant/components/time/strings.json @@ -4,5 +4,17 @@ "_": { "name": "[%key:component::time::title%]" } + }, + "services": { + "set_value": { + "name": "Set Time", + "description": "Sets the time.", + "fields": { + "time": { + "name": "Time", + "description": "The time to set." + } + } + } } }