Migrate switch services to support translations (#96405)

This commit is contained in:
Franck Nijhof 2023-07-12 12:53:24 +02:00 committed by GitHub
parent eb3b56798d
commit d0258c8fc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 6 deletions

View File

@ -1,22 +1,16 @@
# Describes the format for available switch services # Describes the format for available switch services
turn_on: turn_on:
name: Turn on
description: Turn a switch on
target: target:
entity: entity:
domain: switch domain: switch
turn_off: turn_off:
name: Turn off
description: Turn a switch off
target: target:
entity: entity:
domain: switch domain: switch
toggle: toggle:
name: Toggle
description: Toggles a switch state
target: target:
entity: entity:
domain: switch domain: switch

View File

@ -30,5 +30,19 @@
"outlet": { "outlet": {
"name": "Outlet" "name": "Outlet"
} }
},
"services": {
"turn_on": {
"name": "Turn on",
"description": "Turns a switch on."
},
"turn_off": {
"name": "Turn off",
"description": "Turns a switch off."
},
"toggle": {
"name": "Toggle",
"description": "Toggles a switch on/off."
}
} }
} }