mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Migrate switch services to support translations (#96405)
This commit is contained in:
parent
eb3b56798d
commit
d0258c8fc8
@ -1,22 +1,16 @@
|
||||
# Describes the format for available switch services
|
||||
|
||||
turn_on:
|
||||
name: Turn on
|
||||
description: Turn a switch on
|
||||
target:
|
||||
entity:
|
||||
domain: switch
|
||||
|
||||
turn_off:
|
||||
name: Turn off
|
||||
description: Turn a switch off
|
||||
target:
|
||||
entity:
|
||||
domain: switch
|
||||
|
||||
toggle:
|
||||
name: Toggle
|
||||
description: Toggles a switch state
|
||||
target:
|
||||
entity:
|
||||
domain: switch
|
||||
|
@ -30,5 +30,19 @@
|
||||
"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."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user