Migrate time services to support translations (#96402)

This commit is contained in:
Franck Nijhof 2023-07-12 12:23:39 +02:00 committed by GitHub
parent ce3c23cb3a
commit a3a2e6cc8d
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 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:

View file

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