From 0ca8a2618475d9bab6b6fc8e0655be6e4b2421fc Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 12 Jul 2023 13:42:53 +0200 Subject: [PATCH] Migrate datetime services to support translations (#96318) Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> --- homeassistant/components/datetime/services.yaml | 4 ---- homeassistant/components/datetime/strings.json | 12 ++++++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/datetime/services.yaml b/homeassistant/components/datetime/services.yaml index b5cce19e88b..fb6f798e9bd 100644 --- a/homeassistant/components/datetime/services.yaml +++ b/homeassistant/components/datetime/services.yaml @@ -1,13 +1,9 @@ set_value: - name: Set Date/Time - description: Set the date/time for a datetime entity. target: entity: domain: datetime fields: datetime: - name: Date & Time - description: The date/time to set. The time zone of the Home Assistant instance is assumed. required: true example: "2022/11/01 22:15" selector: diff --git a/homeassistant/components/datetime/strings.json b/homeassistant/components/datetime/strings.json index 3b97559018c..503d7a2ca9e 100644 --- a/homeassistant/components/datetime/strings.json +++ b/homeassistant/components/datetime/strings.json @@ -4,5 +4,17 @@ "_": { "name": "[%key:component::datetime::title%]" } + }, + "services": { + "set_value": { + "name": "Set date/time", + "description": "Sets the date/time for a datetime entity.", + "fields": { + "datetime": { + "name": "Date & Time", + "description": "The date/time to set. The time zone of the Home Assistant instance is assumed." + } + } + } } }