From c6a9c6c94872f0d259c1acb8ba8a64c98c7e7587 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 12 Jul 2023 13:42:29 +0200 Subject: [PATCH] Migrate date services to support translations (#96317) --- homeassistant/components/date/services.yaml | 4 ---- homeassistant/components/date/strings.json | 12 ++++++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/date/services.yaml b/homeassistant/components/date/services.yaml index 7ce1210f809..aebf5630205 100644 --- a/homeassistant/components/date/services.yaml +++ b/homeassistant/components/date/services.yaml @@ -1,13 +1,9 @@ set_value: - name: Set Date - description: Set the date for a date entity. target: entity: domain: date fields: date: - name: Date - description: The date to set. required: true example: "2022/11/01" selector: diff --git a/homeassistant/components/date/strings.json b/homeassistant/components/date/strings.json index 110a4cabb92..9e88d3b5676 100644 --- a/homeassistant/components/date/strings.json +++ b/homeassistant/components/date/strings.json @@ -4,5 +4,17 @@ "_": { "name": "[%key:component::date::title%]" } + }, + "services": { + "set_value": { + "name": "Set date", + "description": "Sets the date.", + "fields": { + "date": { + "name": "Date", + "description": "The date to set." + } + } + } } }