Migrate datetime services to support translations (#96318)

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
Franck Nijhof 2023-07-12 13:42:53 +02:00 committed by GitHub
parent c6a9c6c948
commit 0ca8a26184
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 4 deletions

View File

@ -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:

View File

@ -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."
}
}
}
}
}